Преглед изворни кода

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

stevetruckstuff пре 19 година
родитељ
комит
6ca8aa243f
1 измењених фајлова са 12 додато и 0 уклоњено
  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;
 }
+
+/**
+ * Display error messages for use in footer.tpl
+ * 
+ * @author Steve Brown
+ * @since 1.5.2
+ **/
+function displayErrors () {
+    global $oErrorHandler;
+    
+    $oErrorHandler->displayErrors();
+}