Changeset 1073 in ExiteCMS for modules/common/advertising/php-files/modules/advertising/advertising.php
- Timestamp:
- 11/06/07 18:08:26 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/advertising/php-files/modules/advertising/advertising.php
r1000 r1073 17 17 18 18 // load the locale for this panel 19 if (file_exists(PATH_MODULES."advertising/locale/".$settings['locale'].".php")) { 20 $locale_file = PATH_MODULES."advertising/locale/".$settings['locale'].".php"; 21 } else { 22 $locale_file = PATH_MODULES."advertising/locale/English.php"; 23 } 24 include $locale_file; 19 locale_load("modules.advertising"); 25 20 26 21 // include the sendmail module … … 263 258 264 259 // define the body panel variables 265 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising', 'template' => 'modules.advertising.tpl', 'locale' => $locale_file);260 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising', 'template' => 'modules.advertising.tpl', 'locale' => "modules.advertising"); 266 261 $template_variables['modules.advertising'] = $variables; 267 262
Note: See TracChangeset
for help on using the changeset viewer.
