New edit icon
[squirrelmail.git] / templates / util_global.php
index e51091fb096c30d3218e18067c8d74e071313c4a..87c3984f54f0b8a2ffc2d6afc60b37ca36fa141a 100644 (file)
@@ -69,9 +69,22 @@ function getIconPath ($icon_theme_path, $icon_name) {
         return $icon_theme_path . $icon_name;
 
     // Icon not found, return the SQM default icon
+    // TODO: allow admins to change the default icon theme in conf.pl
     } elseif (is_file(SM_PATH . 'images/themes/default/'.$icon_name)) {
         return SM_PATH . 'images/themes/default/'.$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();
+}