浏览代码

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();
+}