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

    r1052 r1071  
    2626 
    2727// load the locales for this module 
    28 include PATH_LOCALE.LOCALESET."register.php"; 
    29 include PATH_LOCALE.LOCALESET."user_fields.php"; 
     28locale_load("main.register"); 
     29locale_load("main.user_fields"); 
    3030 
    3131// check whether we allow registrations 
     
    4848            } 
    4949            // define the body panel variables 
    50             $template_panels[] = array('type' => 'body', 'name' => 'register.activate', 'template' => 'main.register.activate.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."register.php", PATH_LOCALE.LOCALESET."user_fields.php")); 
     50            $template_panels[] = array('type' => 'body', 'name' => 'register.activate', 'template' => 'main.register.activate.tpl', 'locale' => array("main.register", "main.user_fields")); 
    5151            $template_variables['register.activate'] = $variables; 
    5252        } else { 
     
    216216        $variables['theme_files'] = $theme_files; 
    217217        // define the body panel variables 
    218         $template_panels[] = array('type' => 'body', 'name' => 'register', 'template' => 'main.register.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."register.php", PATH_LOCALE.LOCALESET."user_fields.php")); 
     218        $template_panels[] = array('type' => 'body', 'name' => 'register', 'template' => 'main.register.tpl', 'locale' => array("main.register", "main.user_fields")); 
    219219        $template_variables['register'] = $variables; 
    220220    } 
Note: See TracChangeset for help on using the changeset viewer.