Changeset 1073 in ExiteCMS
- Timestamp:
- 11/06/07 18:08:26 (4 years ago)
- Location:
- modules/common/advertising/php-files
- Files:
-
- 1 deleted
- 3 edited
-
advertising.php (deleted)
-
modules/advertising/advertising.php (modified) (2 diffs)
-
modules/advertising/advertising_admin.php (modified) (7 diffs)
-
modules/advertising/module_installer.php (modified) (1 diff)
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 -
modules/common/advertising/php-files/modules/advertising/advertising_admin.php
r1051 r1073 14 14 15 15 // load the locale for this panel 16 if (file_exists(PATH_MODULES."advertising/locale/".$settings['locale'].".php")) { 17 $locale_file = PATH_MODULES."advertising/locale/".$settings['locale'].".php"; 18 } else { 19 $locale_file = PATH_MODULES."advertising/locale/English.php"; 20 } 21 include $locale_file; 16 locale_load("modules.advertising"); 22 17 23 18 // temp storage for template variables … … 438 433 $variables['errortitle'] = $errortitle; 439 434 } 440 $template_panels[] = array('type' => 'body', 'title' => $title, 'name' => 'modules.advertising.delclient', 'template' => 'modules.advertising.delclient.tpl', 'locale' => $locale_file);435 $template_panels[] = array('type' => 'body', 'title' => $title, 'name' => 'modules.advertising.delclient', 'template' => 'modules.advertising.delclient.tpl', 'locale' => "modules.advertising"); 441 436 $template_variables['modules.advertising.delclient'] = $variables; 442 437 break; … … 449 444 $variables['errortitle'] = $errortitle; 450 445 } 451 $template_panels[] = array('type' => 'body', 'title' => $title, 'name' => 'modules.advertising.addclient', 'template' => 'modules.advertising.addclient.tpl', 'locale' => $locale_file);446 $template_panels[] = array('type' => 'body', 'title' => $title, 'name' => 'modules.advertising.addclient', 'template' => 'modules.advertising.addclient.tpl', 'locale' => "modules.advertising"); 452 447 $template_variables['modules.advertising.addclient'] = $variables; 453 448 break; … … 532 527 $variables['errortitle'] = $errortitle; 533 528 } 534 $template_panels[] = array('type' => 'body', 'title' => $title, 'name' => 'modules.advertising.edit', 'template' => 'modules.advertising.edit.tpl', 'locale' => $locale_file);529 $template_panels[] = array('type' => 'body', 'title' => $title, 'name' => 'modules.advertising.edit', 'template' => 'modules.advertising.edit.tpl', 'locale' => "modules.advertising"); 535 530 $template_variables['modules.advertising.edit'] = $variables; 536 531 break; … … 554 549 $variables['errortitle'] = $errortitle; 555 550 } 556 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising.images', 'template' => 'modules.advertising.images.tpl', 'locale' => $locale_file);551 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising.images', 'template' => 'modules.advertising.images.tpl', 'locale' => "modules.advertising"); 557 552 $template_variables['modules.advertising.images'] = $variables; 558 553 } … … 566 561 $variables['errortitle'] = $errortitle; 567 562 } 568 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising.admin', 'template' => 'modules.advertising.admin.tpl', 'locale' => $locale_file);563 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising.admin', 'template' => 'modules.advertising.admin.tpl', 'locale' => "modules.advertising"); 569 564 $template_variables['modules.advertising.admin'] = $variables; 570 565 … … 636 631 $variables['ads2'] = $ads2; 637 632 $c++; 638 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising.overview'.$c, 'template' => 'modules.advertising.overview.tpl', 'locale' => $locale_file);633 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising.overview'.$c, 'template' => 'modules.advertising.overview.tpl', 'locale' => "modules.advertising"); 639 634 $template_variables['modules.advertising.overview'.$c] = $variables; 640 635 } -
modules/common/advertising/php-files/modules/advertising/module_installer.php
r999 r1073 16 16 +----------------------------------------------------*/ 17 17 18 if (file_exists(PATH_MODULES."advertising/locale/".$settings['locale'].".php")) { 19 include PATH_MODULES."advertising/locale/".$settings['locale'].".php"; 20 } else { 21 include PATH_MODULES."advertising/locale/English.php"; 22 } 18 locale_load("modules.advertising"); 23 19 24 20 /*---------------------------------------------------+
Note: See TracChangeset
for help on using the changeset viewer.
