# HG changeset patch # User Matti Hamalainen # Date 1494323891 -10800 # Node ID a3bf93b85758d67c0c2d08980c451560f172124b # Parent c803235bd0f9ca7b351e994ded25a8c0a91a9eda Cosmetics. diff -r c803235bd0f9 -r a3bf93b85758 mgallery.php --- a/mgallery.php Mon Mar 20 15:37:19 2017 +0200 +++ b/mgallery.php Tue May 09 12:58:11 2017 +0300 @@ -250,12 +250,15 @@ function mgGetNaviControlImageBoxJS(&$galIndex, $index, $class, $delta) { + $str = mgGetNaviControlImageBox($galIndex, $index, $class, $delta); + + if ($str != "") return ""; + else + return ""; } @@ -587,22 +590,22 @@ mgPrintBreadCrumbs($galData); echo - mgGetPageInfoHeaderEnd(). + mgGetPageInfoHeaderEnd()."\n". "
\n". mgGetNaviControlImageBoxJS($galImagesIndex, $index, "prevBtm", -1)."\n". mgGetNaviControlImageBox($galImagesIndex, $index, "prev", -1)."\n". - "
\n". + "
". "\"".chentities($data["base"].$galMedSuffix.$data["ext"])."\"". "
\n". mgGetNaviControlImageBoxJS($galImagesIndex, $index, "nextBtm", 1)."\n". mgGetNaviControlImageBox($galImagesIndex, $index, "next", 1)."\n". "
".mgGetArr($data, "caption", "%1", "")."
\n". "
\n". - mgGetArr($data, "datetime", "%1", "", "mgTimeStr"). - implode(", ", array_filter($list, function($a) { return $a !== NULL; })). + mgGetArr($data, "datetime", "%1\n", "", "mgTimeStr"). + implode(",\n", array_filter($list, function($a) { return $a !== NULL; }))."\n". "". mgQM("view_best_quality")."\n". - "
". + "
\n". "
\n"; // Javascript navigation