Mercurial > hg > mgallery
changeset 113:4f95ed80583c
More cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 20 Mar 2017 14:47:56 +0200 |
parents | b1834e342e73 |
children | c803235bd0f9 |
files | mgallery.inc.php mgallery.php |
diffstat | 2 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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 "<h1>".mgQM("gallery_error")."</h1>\n".