Ignore:
Timestamp:
11/06/07 18:08:26 (5 years ago)
Author:
root
Message:

removed old website root file. No longer used.
Updated the advertising module to use the new locale_load() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/advertising/php-files/modules/advertising/advertising.php

    r1000 r1073  
    1717 
    1818// 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; 
     19locale_load("modules.advertising"); 
    2520 
    2621// include the sendmail module 
     
    263258 
    264259// 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"); 
    266261$template_variables['modules.advertising'] = $variables; 
    267262 
Note: See TracChangeset for help on using the changeset viewer.