changeset 190:718f4c504662

Remove function that was used only once, merge it to parent.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Mar 2018 12:42:53 +0200
parents 5e7319ccb7cf
children 11aae39833cb
files mgallery.php
diffstat 1 files changed, 3 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.php	Thu Mar 15 14:41:48 2018 +0200
+++ b/mgallery.php	Mon Mar 19 12:42:53 2018 +0200
@@ -128,8 +128,10 @@
 
 function mgPrintPageFooter()
 {
+  if (($str = mgGetSetting("page_info")) !== FALSE)
+    echo "<div id=\"pageInfoFooter\"><div>".$str."</div></div>";
+
   echo
-    mgGetPageInfoFooter().
     "</div>\n</body>\n</html>\n";
 }
 
@@ -378,15 +380,6 @@
 }
 
 
-function mgGetPageInfoFooter()
-{
-  if (($str = mgGetSetting("page_info")) !== FALSE)
-    return "<div id=\"pageInfoFooter\"><div>".$str."</div></div>";
-  else
-    return "";
-}
-
-
 function mgGetBreadCrump($class, &$pdata)
 {
   return