Changeset 1073 in ExiteCMS for modules/common/advertising/php-files/modules/advertising/advertising_admin.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_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 }
Note: See TracChangeset
for help on using the changeset viewer.
