diff options
author | deva <deva> | 2010-01-28 14:11:14 +0000 |
---|---|---|
committer | deva <deva> | 2010-01-28 14:11:14 +0000 |
commit | 10267210927846619e39e76ac173d9295851b948 (patch) | |
tree | bf85343aa358b25b68ce953492689cbcebb37259 /utils/modules/gallery.php | |
parent | 55b8d42b6422f24196078c8adb6a2a59861d0ef4 (diff) |
Fix broken module loading in admin. New module parameter system.
Diffstat (limited to 'utils/modules/gallery.php')
-rw-r--r-- | utils/modules/gallery.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/modules/gallery.php b/utils/modules/gallery.php index 6b2f384..4c7edc5 100644 --- a/utils/modules/gallery.php +++ b/utils/modules/gallery.php @@ -378,18 +378,18 @@ class Gallery { $str = ""; $str .= "\n<span class=\"gallery\">\n"; - foreach($params as $param) { + foreach($params as $param => $value) { switch($param) { + case "random": + $str .= $this->showRandomPhoto(); + break; + default: if($p != "" && $a != "") $str .= $this->showPhoto($a, $p); else if($a != "" && $this->albums[$a] && $p == "") $str .= $this->albums[$a]->show(" ", $this->maxwidth_icon, $this->maxheight_icon); else $str .= $this->showAlbums(); break; - - case "random": - $str .= $this->showRandomPhoto(); - break; } } $str .= "</span>\n"; |