Add function for displaying errors to avoid having to call $oErrorHandler or $this...
[squirrelmail.git] / templates / util_global.php
index e51091fb096c30d3218e18067c8d74e071313c4a..2ffd15e5a8abc41335720e509cca337f480e913b 100644 (file)
@@ -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();
+}