Changeset 10179 for extensions/Mail_supervisor/mail_super.inc.php
- Timestamp:
- Apr 9, 2011, 12:53:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/mail_super.inc.php
r10093 r10179 47 47 static public function init() { 48 48 global $template,$version,$path_js,$icon_path; 49 50 $theme="default"; 51 49 52 if (PHPWG_VERSION < 2.2 ) { 50 53 $file =MAIL_SUPERV_PATH_ABS.'admin/header_2_1.tpl' ; 51 54 if (PHPWG_VERSION < 2.0 ) $path_js = "template-common/lib/"; 52 55 else $path_js= 'themes/default/js/' ; 56 $themeconf=$template->get_template_vars('themeconf'); 57 $theme=$themeconf['id']; 58 53 59 } else { 60 $themeconf=$template->get_template_vars('themeconf'); 61 $theme=$themeconf['id']; 54 62 $file =MAIL_SUPERV_PATH_ABS.'admin/header_2_2.tpl' ; 55 63 $path_js= 'themes/default/js/' ; … … 60 68 unset ($_SESSION['pwg_'.'action_spam']); 61 69 } 70 62 71 63 72 $template->set_filenames(array('mail_superv_init'=> $file )); 64 73 if (file_exists ( 'admin/themes/clear/icon/help.png')) $icon_path = 'themes/default/icon/help.png'; 65 74 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, 68 77 'PHPWG_VERSION' => PHPWG_VERSION , 69 78 'MAIL_SUPERV_PATH' => MAIL_SUPERV_PATH ,
Note: See TracChangeset
for help on using the changeset viewer.