Changeset 1000 in ExiteCMS
- Timestamp:
- 10/23/07 15:01:25 (4 years ago)
- Files:
-
- 1 added
- 1 deleted
- 2 edited
- 1 copied
-
modules/common/advertising/php-files/modules/advertising/advertising.php (modified) (3 diffs)
-
modules/common/advertising/php-files/modules/advertising/advertising_admin.php (modified) (1 diff)
-
modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.admin.tpl (copied) (copied from modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.tpl)
-
modules/common/advertising/php-files/modules/advertising/templates/modules.advertising.tpl (added)
-
trunk/includes/templates/main.advertising.tpl (deleted)
Legend:
- Unmodified
- Added
- Removed
-
modules/common/advertising/php-files/modules/advertising/advertising.php
r999 r1000 10 10 | the included gpl.txt file or visit http://gnu.org | 11 11 +----------------------------------------------------*/ 12 require_once dirname(__FILE__)."/ includes/core_functions.php";12 require_once dirname(__FILE__)."/../../includes/core_functions.php"; 13 13 require_once PATH_ROOT."/includes/theme_functions.php"; 14 14 … … 16 16 $variables = array(); 17 17 18 // include the locale for this module 19 include PATH_LOCALE.LOCALESET."admin/adverts.php"; 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; 20 25 21 26 // include the sendmail module … … 258 263 259 264 // define the body panel variables 260 $template_panels[] = array('type' => 'body', 'name' => ' advertising', 'template' => 'main.advertising.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/adverts.php");261 $template_variables[' advertising'] = $variables;265 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising', 'template' => 'modules.advertising.tpl', 'locale' => $locale_file); 266 $template_variables['modules.advertising'] = $variables; 262 267 263 268 // Call the theme code to generate the output for this webpage -
modules/common/advertising/php-files/modules/advertising/advertising_admin.php
r999 r1000 566 566 $variables['errortitle'] = $errortitle; 567 567 } 568 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising ', 'template' => 'modules.advertising.tpl', 'locale' => $locale_file);569 $template_variables['modules.advertising '] = $variables;568 $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising.admin', 'template' => 'modules.advertising.admin.tpl', 'locale' => $locale_file); 569 $template_variables['modules.advertising.admin'] = $variables; 570 570 571 571 // loop through all advertising clients
Note: See TracChangeset
for help on using the changeset viewer.
