Browse Source

Add function for displaying errors to avoid having to call $oErrorHandler or $this within footer template.

stevetruckstuff 19 years ago
parent
commit
6ca8aa243f
1 changed files with 12 additions and 0 deletions
  1. 12 0
      templates/util_global.php

+ 12 - 0
templates/util_global.php

@@ -75,3 +75,15 @@ function getIconPath ($icon_theme_path, $icon_name) {
     
     
     return NULL;
     return NULL;
 }
 }
+
+/**
+ * Display error messages for use in footer.tpl
+ * 
+ * @author Steve Brown
+ * @since 1.5.2
+ **/
+function displayErrors () {
+    global $oErrorHandler;
+    
+    $oErrorHandler->displayErrors();
+}