summaryrefslogtreecommitdiff
path: root/utils/modules/gallery.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/modules/gallery.php')
-rw-r--r--utils/modules/gallery.php10
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";