Changeset 1000 in ExiteCMS for modules/common/advertising/php-files/modules/advertising/advertising.php
- Timestamp:
- 10/23/07 15:01:25 (5 years ago)
- File:
-
- 1 edited
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
Note: See TracChangeset
for help on using the changeset viewer.
