util_global.php is also included by footer.tpl => include_once.
[squirrelmail.git] / templates / util_global.php
index 9ef9e040eca869e7ed834c8bf55df816f4a80446..56c832c20c4c9a0b0fb751fc25f63f3258f1316c 100644 (file)
@@ -61,7 +61,7 @@ function getIcon($icon_theme_path, $icon_name, $text_icon, $alt_text='', $w=NULL
  * @since 1.5.2
  */
 function getIconPath ($icon_theme_path, $icon_name) {
-    global $default_icon_theme;
+    global $fallback_icon_theme_path;
 
     if (is_null($icon_theme_path))
         return NULL;
@@ -70,9 +70,9 @@ function getIconPath ($icon_theme_path, $icon_name) {
     if (is_file($icon_theme_path . $icon_name)) {
         return $icon_theme_path . $icon_name;
         
-    // Icon not found, check for the admin-specified default
-    } elseif (!is_null($default_icon_theme) && is_file($default_icon_theme . $icon_name)) {
-        return $default_icon_theme . $icon_name;
+    // Icon not found, check for the admin-specified fallback
+    } elseif (!is_null($fallback_icon_theme_path) && is_file($fallback_icon_theme_path . $icon_name)) {
+        return $fallback_icon_theme_path . $icon_name;
         
     // Icon not found, return the SQM default icon
     } elseif (is_file(SM_PATH . 'images/themes/default/'.$icon_name)) {