Fix adding scripts while running dimp but not on a dimp page (i.e. contacts.php)
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 12 Mar 2010 18:45:10 +0000 (11:45 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 12 Mar 2010 19:28:16 +0000 (12:28 -0700)
imp/templates/common-header.inc

index e2a6895..23bc4f8 100644 (file)
@@ -40,6 +40,9 @@ if (!empty($refresh_time) && !empty($refresh_url)) {
 switch ($imp_view) {
 case 'dimp':
     Horde_Themes::includeStylesheetFiles(array('sub' => 'dimp'));
+    if (!in_array(basename($_SERVER['PHP_SELF']), array('compose-dimp.php', 'index-dimp.php', 'message-dimp.php'))) {
+        Horde::includeScriptFiles();
+    }
     break;
 
 case 'mimp':