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

    r971 r1074  
    2323 
    2424// load the locale for this module 
    25 if (file_exists(PATH_MODULES."donations/locale/".$settings['locale'].".php")) { 
    26     $locale_file = PATH_MODULES."donations/locale/".$settings['locale'].".php"; 
    27 } else { 
    28     $locale_file = PATH_MODULES."donations/locale/English.php"; 
    29 } 
    30 include $locale_file; 
     25locale_load("modules.donations"); 
    3126 
    3227// define the donation types 
     
    315310 
    316311// define the body panel variables 
    317 $template_panels[] = array('type' => 'body', 'name' => 'donations.admin_panel', 'title' => $title, 'template' => 'modules.donations.admin_panel.tpl', 'locale' => $locale_file); 
     312$template_panels[] = array('type' => 'body', 'name' => 'donations.admin_panel', 'title' => $title, 'template' => 'modules.donations.admin_panel.tpl', 'locale' => "modules.donations"); 
    318313$template_variables['donations.admin_panel'] = $variables; 
    319314 
Note: See TracChangeset for help on using the changeset viewer.