commit 052eff8addddbd1ea65c3c6b3c6c513f6bb0e9cb parent 287ef3ee7aae38a501b22d1ec24fb26fb49c0a40 Author: dankert <devnull@localhost> Date: Mon, 30 Nov 2009 22:45:25 +0100 Neues Attribut: folderid Diffstat:
dynamicClasses/Album.class.php | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/dynamicClasses/Album.class.php b/dynamicClasses/Album.class.php @@ -34,6 +34,7 @@ class Album extends Dynamic * @type String */ var $parameters = Array( + 'folderid' ); /** @@ -41,12 +42,19 @@ class Album extends Dynamic * @type String */ var $description = 'Creates an album.'; + + var $folderid = 0; /** */ function execute() { - $folderid = $this->page->parentid; + if ( intval($this->folderid)!=0 ) + $folderid = $this->folderid; + else + $folderid = $this->page->parentid; + //Html::debug($folderid); + $f = new Folder($folderid); $files = $f->getFiles();