Ignore:
Timestamp:
04/09/11 12:53:42 (9 years ago)
Author:
cljosse
Message:

[extensions] mail_supervisor fix bug with theme: clear/roma

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/mail_super.inc.php

    r10093 r10179  
    4747 static public function init() { 
    4848  global  $template,$version,$path_js,$icon_path; 
     49 
     50 $theme="default"; 
     51 
    4952  if (PHPWG_VERSION < 2.2 ) { 
    5053    $file =MAIL_SUPERV_PATH_ABS.'admin/header_2_1.tpl' ; 
    5154    if (PHPWG_VERSION < 2.0 ) $path_js =  "template-common/lib/"; 
    5255    else $path_js=  'themes/default/js/' ; 
     56    $themeconf=$template->get_template_vars('themeconf'); 
     57    $theme=$themeconf['id']; 
     58    
    5359  } else { 
     60     $themeconf=$template->get_template_vars('themeconf'); 
     61    $theme=$themeconf['id']; 
    5462    $file =MAIL_SUPERV_PATH_ABS.'admin/header_2_2.tpl' ; 
    5563    $path_js=  'themes/default/js/' ; 
     
    6068    unset ($_SESSION['pwg_'.'action_spam']); 
    6169  } 
     70  
    6271 
    6372  $template->set_filenames(array('mail_superv_init'=> $file )); 
    6473  if (file_exists ( 'admin/themes/clear/icon/help.png')) $icon_path = 'themes/default/icon/help.png'; 
    6574  else  $icon_path =  "admin/template/goto/theme/clear/icon/help.png"; 
    66   $template->assign( 
    67       array('version' => $version, 
     75  $template->assign(  
     76      array('theme' => $theme,'version' => $version, 
    6877      'PHPWG_VERSION' =>     PHPWG_VERSION , 
    6978      'MAIL_SUPERV_PATH' =>  MAIL_SUPERV_PATH , 
Note: See TracChangeset for help on using the changeset viewer.