Changeset 1289 in ExiteCMS


Ignore:
Timestamp:
02/17/08 21:46:27 (4 years ago)
Author:
hverton
Message:

fixed locale error, now using the locale_load() function to load the 'old-style' locale files

Location:
modules/PLi-Fusion/donations/php-files/modules/donations
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/PLi-Fusion/donations/php-files/modules/donations/index.php

    r971 r1289  
    2020 
    2121// load the locale for this module 
    22 if (file_exists(PATH_MODULES."donations/locale/".$settings['locale'].".php")) { 
    23     $locale_file = PATH_MODULES."donations/locale/".$settings['locale'].".php"; 
    24 } else { 
    25     $locale_file = PATH_MODULES."donations/locale/English.php"; 
    26 } 
    27 include $locale_file; 
     22locale_load('modules.donations'); 
    2823 
    2924// check if we're running in production. If not, switch to Paypal sandbox 
     
    4439 
    4540// define the body panel variables 
    46 $template_panels[] = array('type' => 'body', 'name' => 'modules.donations.index', 'template' => 'modules.donations.index.tpl', 'locale' => $locale_file); 
     41$template_panels[] = array('type' => 'body', 'name' => 'modules.donations.index', 'template' => 'modules.donations.index.tpl', 'locale' => 'modules.donations'); 
    4742$template_variables['modules.donations.index'] = $variables; 
    4843 
  • modules/PLi-Fusion/donations/php-files/modules/donations/notify.php

    r971 r1289  
    9696 
    9797// *** main *** 
    98  
    99 if (file_exists(PATH_MODULES."donations/locale/".$settings['locale'].".php")) { 
    100     include PATH_MODULES."donations/locale/".$settings['locale'].".php"; 
    101 } else { 
    102     include PATH_MODULES."donations/locale/English.php"; 
    103 } 
     98locale_load('modules.donations'); 
    10499 
    105100// donation log file 
Note: See TracChangeset for help on using the changeset viewer.