Changeset 1071 in ExiteCMS for trunk/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/profile.php

    r1060 r1071  
    2323 
    2424// load the locales for this module 
    25 include PATH_LOCALE.LOCALESET."members-profile.php"; 
    26 include PATH_LOCALE.LOCALESET."user_fields.php"; 
     25locale_load("main.members-profile"); 
     26locale_load("main.user_fields"); 
    2727 
    2828// temp storage for template variables 
     
    113113    // define the body panel variables 
    114114    $variables['data'] = $data; 
    115     $template_panels[] = array('type' => 'body', 'name' => 'profile', 'template' => 'main.profile.members.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."members-profile.php", PATH_LOCALE.LOCALESET."user_fields.php")); 
     115    $template_panels[] = array('type' => 'body', 'name' => 'profile', 'template' => 'main.profile.members.tpl', 'locale' => array("main.members-profile", "main.user_fields")); 
    116116    $template_variables['profile'] = $variables; 
    117117} 
     
    145145    // define the body panel variables 
    146146    $variables['members'] = $members; 
    147     $template_panels[] = array('type' => 'body', 'name' => 'profile', 'template' => 'main.profile.groups.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."members-profile.php", PATH_LOCALE.LOCALESET."user_fields.php")); 
     147    $template_panels[] = array('type' => 'body', 'name' => 'profile', 'template' => 'main.profile.groups.tpl', 'locale' => array("main.members-profile", "main.user_fields")); 
    148148    $template_variables['profile'] = $variables; 
    149149} 
Note: See TracChangeset for help on using the changeset viewer.