Changeset 1074 in ExiteCMS for modules/common/mail2forum/php-files/modules/mail2forum/m2f_admin_panel.php
- Timestamp:
- 11/06/07 18:22:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/mail2forum/php-files/modules/mail2forum/m2f_admin_panel.php
r965 r1074 14 14 15 15 // load the locale for this module 16 if (file_exists(PATH_MODULES."mail2forum/locale/".$settings['locale'].".php")) { 17 $locale_file = PATH_MODULES."mail2forum/locale/".$settings['locale'].".php"; 18 } else { 19 $locale_file = PATH_MODULES."mail2forum/locale/English.php"; 20 } 21 include $locale_file; 16 locale_load("modules.mail2forum"); 22 17 23 18 // temp storage for template variables … … 161 156 $variables['m2f_forumid'] = $_POST['m2f_forumid']; 162 157 // define the panel 163 $template_panels[] = array('type' => 'body', 'name' => 'modules.m2f_admin_panel.delete', 'template' => 'modules.mail2forum.admin_panel_delete.tpl', 'locale' => $locale_file);158 $template_panels[] = array('type' => 'body', 'name' => 'modules.m2f_admin_panel.delete', 'template' => 'modules.mail2forum.admin_panel_delete.tpl', 'locale' => "modules.mail2forum"); 164 159 $template_variables['modules.m2f_admin_panel.delete'] = $variables; 165 160 $variables = array(); … … 212 207 213 208 // define the panel 214 $template_panels[] = array('type' => 'body', 'name' => 'modules.m2f_admin_panel.edit', 'template' => 'modules.mail2forum.admin_panel_edit.tpl', 'locale' => $locale_file);209 $template_panels[] = array('type' => 'body', 'name' => 'modules.m2f_admin_panel.edit', 'template' => 'modules.mail2forum.admin_panel_edit.tpl', 'locale' => "modules.mail2forum"); 215 210 $template_variables['modules.m2f_admin_panel.edit'] = $variables; 216 211 $variables = array(); … … 248 243 249 244 // define the admin body panel 250 $template_panels[] = array('type' => 'body', 'name' => 'modules.m2f_admin_panel', 'template' => 'modules.mail2forum.admin_panel.tpl', 'locale' => $locale_file);245 $template_panels[] = array('type' => 'body', 'name' => 'modules.m2f_admin_panel', 'template' => 'modules.mail2forum.admin_panel.tpl', 'locale' => "modules.mail2forum"); 251 246 $template_variables['modules.m2f_admin_panel'] = $variables; 252 247 }
Note: See TracChangeset
for help on using the changeset viewer.
