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

    r834 r1071  
    3131 
    3232// load the locale for this module 
    33 include PATH_LOCALE.LOCALESET."contact.php"; 
     33locale_load("main.contact"); 
    3434 
    3535if (isset($_POST['sendmessage'])) { 
     
    6464    // define the body panel variables 
    6565    $variables['target'] = $target; 
    66     $template_panels[] = array('type' => 'body', 'name' => 'main.contact', 'template' => 'main.contact.tpl', 'locale' => PATH_LOCALE.LOCALESET.'contact.php'); 
     66    $template_panels[] = array('type' => 'body', 'name' => 'main.contact', 'template' => 'main.contact.tpl', 'locale' => "main.contact"); 
    6767    $template_variables['main.contact'] = $variables; 
    6868} 
Note: See TracChangeset for help on using the changeset viewer.