Changeset:
        68f49b0e54e5
        
https://sourceforge.net/p/mrbs/hg-code/ci/68f49b0e54e54642e9bcba53c61d53295985cf0f
Author:
        Campbell Morrison <[email protected]>
Date:
        Wed Aug 17 15:02:10 2016 +0100
Log message:

Made MRBS fall back to the default footer if none exists in the theme (as 
happens with the header).

diffstat:

 web/functions.inc |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (32 lines):

diff -r 568384810b7d -r 68f49b0e54e5 web/functions.inc
--- a/web/functions.inc Mon Aug 15 17:12:32 2016 +0100
+++ b/web/functions.inc Wed Aug 17 15:02:10 2016 +0100
@@ -177,20 +177,20 @@
 function print_footer($and_exit)
 {
   global $theme;
+  
+  // Load the print_theme_footer function appropriate to the theme.    If there
+  // isn't one then fall back to the default footer.
   if (is_readable("Themes/$theme/footer.inc"))
   {
     include_once "Themes/$theme/footer.inc";
   }
-  if (function_exists("print_theme_footer"))
+  if (!function_exists("print_theme_footer"))
   {
-    print_theme_footer();
+    require_once "Themes/default/footer.inc";
   }
-  else {
-?>
-</body>
-</html>
-<?php
-  }
+
+  print_theme_footer();
+
   if ($and_exit)
   {
     exit(0);

------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to