# HG changeset patch # User Matti Hamalainen # Date 1490014076 -7200 # Node ID 4f95ed80583c7463d15797514b9fb6a08a0b594b # Parent b1834e342e73e55f53b3be84ea5de72537a017eb More cleanups. diff -r b1834e342e73 -r 4f95ed80583c mgallery.inc.php --- a/mgallery.inc.php Mon Mar 20 14:39:01 2017 +0200 +++ b/mgallery.inc.php Mon Mar 20 14:47:56 2017 +0200 @@ -254,7 +254,7 @@ } -function mgGetTrans($val, $che = FALSE) +function mgGetTrans($val, $useEntities = FALSE) { global $pageLang; @@ -263,7 +263,7 @@ else $str = $val; - return $che ? chentities($str) : $str; + return $useEntities ? chentities($str) : $str; } @@ -297,11 +297,6 @@ } -function mgGetVal($skeys, $sfmt1 = "%1", $sfmt2 = "", $func = NULL) -{ -} - - function mgGetDValStr($type, $val) { switch ($type) diff -r b1834e342e73 -r 4f95ed80583c mgallery.php --- a/mgallery.php Mon Mar 20 14:39:01 2017 +0200 +++ b/mgallery.php Mon Mar 20 14:47:56 2017 +0200 @@ -541,7 +541,7 @@ if (!isset($galData) || !isset($galEntries) || !isset($galAlbumsIndex) || !isset($galImagesIndex)) { - mgPrintPageHeader(mgGetVal(["title_prefix", "title_sep"], "%1%2")."ERROR!"); + mgPrintPageHeader($galTitlePrefix.$galTitleSep."ERROR!"); echo "

".mgQM("gallery_error")."

\n".