From 10267210927846619e39e76ac173d9295851b948 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 28 Jan 2010 14:11:14 +0000 Subject: Fix broken module loading in admin. New module parameter system. --- utils/modules/gallery.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'utils/modules/gallery.php') 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\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 .= "\n"; -- cgit v1.2.3