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

    r834 r1071  
    2424 
    2525// load this module's locales 
    26 include PATH_LOCALE.LOCALESET."faq.php"; 
     26locale_load("main.faq"); 
    2727 
    2828// temp storage for template variables 
     
    6262$variables['cat_id'] = $cat_id; 
    6363// define the body panel variables 
    64 $template_panels[] = array('type' => 'body', 'name' => 'faq', 'title' => $title, 'template' => 'main.faq.tpl', 'locale' => PATH_LOCALE.LOCALESET."faq.php"); 
     64$template_panels[] = array('type' => 'body', 'name' => 'faq', 'title' => $title, 'template' => 'main.faq.tpl', 'locale' => "main.faq"); 
    6565$template_variables['faq'] = $variables; 
    6666 
Note: See TracChangeset for help on using the changeset viewer.