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

    r963 r1071  
    2020 
    2121// load the locale for this module 
    22 include PATH_LOCALE.LOCALESET."lostpassword.php"; 
     22locale_load("main.lostpassword"); 
    2323 
    2424// get the sendmail include 
     
    4747            $variables['message'] = $locale['402']; 
    4848            $variables['bold'] = true; 
    49             $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php"); 
     49            $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => "main.lostpassword"); 
    5050            $template_variables['lostpassword'] = $variables; 
    5151        } else { 
     
    6969            $variables['linktext'] = $locale['403']; 
    7070            $variables['bold'] = true; 
    71             $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php"); 
     71            $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => "main.lostpassword"); 
    7272            $template_variables['lostpassword'] = $variables; 
    7373        } else { 
     
    7777            $variables['linktext'] = $locale['406']; 
    7878            $variables['bold'] = true; 
    79             $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php"); 
     79            $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => "main.lostpassword"); 
    8080            $template_variables['lostpassword'] = $variables; 
    8181        } 
     
    8686        $variables['linktext'] = $locale['403']; 
    8787        $variables['bold'] = true; 
    88         $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php"); 
     88        $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => '_message_table_panel.tpl', 'locale' => "main.lostpassword"); 
    8989        $template_variables['lostpassword'] = $variables; 
    9090    } 
    9191} else { 
    9292    // define the body panel variables 
    93     $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => 'main.lostpassword.tpl', 'locale' => PATH_LOCALE.LOCALESET."lostpassword.php"); 
     93    $template_panels[] = array('type' => 'body', 'name' => 'lostpassword', 'template' => 'main.lostpassword.tpl', 'locale' => "main.lostpassword"); 
    9494    $template_variables['lostpassword'] = $variables; 
    9595} 
Note: See TracChangeset for help on using the changeset viewer.