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/donors.php

    r971 r1074  
    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// make sure rowstart has a valid value 
     
    5045 
    5146// define the body panel variables 
    52 $template_panels[] = array('type' => 'body', 'name' => 'donations.donors', 'template' => 'modules.donations.donors.tpl', 'locale' => $locale_file); 
     47$template_panels[] = array('type' => 'body', 'name' => 'donations.donors', 'template' => 'modules.donations.donors.tpl', 'locale' => "modules.donations"); 
    5348$template_variables['donations.donors'] = $variables; 
    5449 
Note: See TracChangeset for help on using the changeset viewer.