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/shoutbox_panel/php-files/modules/shoutbox_panel/shoutbox_admin.php

    r836 r1074  
    1414 
    1515// load the locale for this module 
    16 if (file_exists(PATH_MODULES."shoutbox_panel/locale/".$settings['locale'].".php")) { 
    17     include PATH_MODULES."shoutbox_panel/locale/".$settings['locale'].".php"; 
    18 } else { 
    19     include PATH_MODULES."shoutbox_panel/locale/English.php"; 
    20 } 
     16locale_load("modules.shoutbox_panel"); 
    2117 
    2218define('ITEMS_PER_PAGE', 20); 
     
    9894 
    9995// define the admin body panel 
    100 $template_panels[] = array('type' => 'body', 'name' => 'admin.shoutbox', 'template' => 'admin.shoutbox.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/shoutbox.php"); 
     96$template_panels[] = array('type' => 'body', 'name' => 'admin.shoutbox', 'template' => 'admin.shoutbox.tpl', 'locale' => "modules.shoutbox_panel"); 
    10197$template_variables['admin.shoutbox'] = $variables; 
    10298 
Note: See TracChangeset for help on using the changeset viewer.