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

Updated the modules to use the new locale_load() function

File:
1 edited

Legend:

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

    r971 r1074  
    3232 
    3333// load the locale for this module 
    34 if (file_exists(PATH_MODULES."donations/locale/".$settings['locale'].".php")) { 
    35     $locale_file = PATH_MODULES."donations/locale/".$settings['locale'].".php"; 
    36 } else { 
    37     $locale_file = PATH_MODULES."donations/locale/English.php"; 
    38 } 
    39 include $locale_file; 
     34locale_load("modules.donations"); 
    4035 
    4136if (isset($_POST['first_name']) && isset($_POST['last_name'])) { 
     
    5752 
    5853// define the body panel variables 
    59 $template_panels[] = array('type' => 'body', 'name' => 'modules.donations.thanks', 'template' => 'modules.donations.thanks.tpl', 'locale' => $locale_file); 
     54$template_panels[] = array('type' => 'body', 'name' => 'modules.donations.thanks', 'template' => 'modules.donations.thanks.tpl', 'locale' => "modules.donations"); 
    6055$template_variables['modules.donations.thanks'] = $variables; 
    6156 
Note: See TracChangeset for help on using the changeset viewer.