pdontthink преди 19 години
родител
ревизия
d2c22cef0d
променени са 3 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 2 2
      templates/default/left_main.tpl
  2. 1 1
      templates/default/webmail.tpl
  3. 4 4
      templates/default_advanced/left_main.tpl

+ 2 - 2
templates/default/left_main.tpl

@@ -10,8 +10,8 @@
  *                         template.  Indexes are as follows:
  *          $settings['iconThemePath'] - Path to the desired icon theme.  If
  *                         the user has disabled icons, this will be NULL.
- *          $settings['templateDirectory'] - contains the path to the current
- *                         template directory.  This may be needed by third
+ *          $settings['templateID'] - contains the ID of the current
+ *                         template set.  This may be needed by third
  *                         party packages that don't integrate easily.
  *          $settings['unreadNotificationEnabled'] - Boolean TRUE if the user
  *                         wants to see unread message count on mailboxes

+ 1 - 1
templates/default/webmail.tpl

@@ -45,4 +45,4 @@ if ($ret != '') {
     $output = $ret;
 }
 
-echo $output ."\n</frameset>";
+echo $output ."\n</frameset>";

+ 4 - 4
templates/default_advanced/left_main.tpl

@@ -14,8 +14,8 @@
  *                         template.  Indexes are as follows:
  *          $settings['iconThemePath'] - Path to the desired icon theme.  If
  *                         the user has disabled icons, this will be NULL.
- *          $settings['templateDirectory'] - contains the path to the current
- *                         template directory.  This may be needed by third
+ *          $settings['templateID'] - contains the ID of the current
+ *                         template set.  This may be needed by third
  *                         party packages that don't integrate easily.
  *          $settings['unreadNotificationEnabled'] - Boolean TRUE if the user
  *                         wants to see unread message count on mailboxes
@@ -95,7 +95,7 @@ function buildMailboxTree ($box, $settings, $parent_node=-1) {
         return '';
     }
     
-    $image_path = $settings['templateDirectory'] . 'images/';
+    $image_path = Template::calculate_template_images_directory($settings['templateID']);
     $out = '';
     if ($box['IsRoot']) {
         // Determine the path to the correct images
@@ -309,4 +309,4 @@ if ($settings['messageRecyclingEnabled']) {
 </script>
 </div>
 <?php do_hook('left_main_after'); ?>
-</div>
+</div>