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/common/mail2forum/php-files/modules/mail2forum/m2f_subscriptions.php

    r933 r1074  
    1414 
    1515// load the locale for this module 
    16 if (file_exists(PATH_MODULES."mail2forum/locale/".$settings['locale'].".php")) { 
    17         $locale_file = PATH_MODULES."mail2forum/locale/".$settings['locale'].".php"; 
    18 } else { 
    19         $locale_file = PATH_MODULES."mail2forum/locale/English.php"; 
    20 } 
    21 include $locale_file; 
     16locale_load("modules.mail2forum"); 
    2217 
    2318// temp storage for template variables 
     
    10196 
    10297// define the admin body panel 
    103 $template_panels[] = array('type' => 'body', 'name' => 'modules.m2f_subscriptions', 'template' => 'modules.mail2forum.subscriptions.tpl', 'locale' => $locale_file); 
     98$template_panels[] = array('type' => 'body', 'name' => 'modules.m2f_subscriptions', 'template' => 'modules.mail2forum.subscriptions.tpl', 'locale' => "modules.mail2forum"); 
    10499$template_variables['modules.m2f_subscriptions'] = $variables; 
    105100 
Note: See TracChangeset for help on using the changeset viewer.