Changeset 1071 in ExiteCMS for trunk/edit_profile.php


Ignore:
Timestamp:
11/06/07 17:12:56 (5 years ago)
Author:
root
Message:

Replaced all includes of locales file by a call to locale_load()
Replaced all locale file references in templates by the locale name
Updated the theme functions to call locale_load() for template locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/edit_profile.php

    r1060 r1071  
    2626 
    2727// load the locates for this module 
    28 include PATH_LOCALE.LOCALESET."members-profile.php"; 
    29 include PATH_LOCALE.LOCALESET."user_fields.php"; 
     28locale_load("main.members-profile"); 
     29locale_load("main.user_fields"); 
    3030 
    3131// admin function check 
     
    223223 
    224224if (isset($check_message)) { 
    225     $template_panels[] = array('type' => 'body', 'name' => 'edit_profile_message', 'title' => $locale['424'], 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."members-profile.php"); 
     225    $template_panels[] = array('type' => 'body', 'name' => 'edit_profile_message', 'title' => $locale['424'], 'template' => '_message_table_panel.tpl', 'locale' => "main.members-profile"); 
    226226    $template_variables['edit_profile_message'] = array('message' => $check_message, 'bold' => true); 
    227227} 
     
    259259 
    260260// define the search body panel variables 
    261 $template_panels[] = array('type' => 'body', 'name' => 'edit_profile', 'template' => 'main.edit_profile.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."members-profile.php", PATH_LOCALE.LOCALESET."user_fields.php")); 
     261$template_panels[] = array('type' => 'body', 'name' => 'edit_profile', 'template' => 'main.edit_profile.tpl', 'locale' => array("main.members-profile", "main.user_fields")); 
    262262$template_variables['edit_profile'] = $variables; 
    263263 
Note: See TracChangeset for help on using the changeset viewer.