# HG changeset patch # User Matti Hamalainen # Date 1558436467 -10800 # Node ID cad9e459e12fe91320fda5920eef09c4eca7934e # Parent 290a42c52e35ab838c429295d95d9fd4362ca1b2 Cleanup. diff -r 290a42c52e35 -r cad9e459e12f mgallery.php --- a/mgallery.php Tue May 21 14:00:36 2019 +0300 +++ b/mgallery.php Tue May 21 14:01:07 2019 +0300 @@ -327,7 +327,7 @@ $atmp = mgCleanPathStr($galImageURL.implode("/", mgCleanPathArray(TRUE, 0, count($ptmp), $ptmp)).".".$galTNFormat); } else - // No album cover, use default + // No album cover, use default $atmp = $galAlbumIcon; echo @@ -563,6 +563,7 @@ if ($ctrlFlags & MGF_BREADCRUMBS) mgPrintBreadCrumbs($galData); + $gpath = isset($data["path"]) ? $data["path"] : $galPath; echo mgGetPageInfoHeaderEnd(). "\n". @@ -575,7 +576,7 @@ mgGetNaviControlImageBox($galPath, $galImagesIndex, $galEntries, $index, "prev", -1)."\n". "
". "\"".chentities($galImage)."\"". "
\n". mgGetNaviControlImageBoxJS($galPath, $galImagesIndex, $galEntries, $index, "nextBtm", 1)."\n". @@ -586,7 +587,8 @@ "
\n". mgGetArr($data, "datetime", "%1\n", "", "mgTimeStr"). implode(",\n", array_filter($list, function($a) { return $a !== NULL; }))."\n". - "". + "". mgQM("view_best_quality")."\n". "
\n"; // infoBox