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

    r834 r1071  
    1717 
    1818// load the locale for this module 
    19 include PATH_LOCALE.LOCALESET."admin/faq.php"; 
     19locale_load("admin.faq"); 
    2020 
    2121// temp storage for template variables 
     
    4444    // define the message panel variables 
    4545    $variables['bold'] = true; 
    46     $template_panels[] = array('type' => 'body', 'name' => 'admin.faq.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/faq.php"); 
     46    $template_panels[] = array('type' => 'body', 'name' => 'admin.faq.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.faq"); 
    4747    $template_variables['admin.faq.status'] = $variables; 
    4848    $variables = array(); 
     
    175175 
    176176// define the admin body panel 
    177 $template_panels[] = array('type' => 'body', 'name' => 'admin.faq', 'template' => 'admin.faq.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/faq.php"); 
     177$template_panels[] = array('type' => 'body', 'name' => 'admin.faq', 'template' => 'admin.faq.tpl', 'locale' => "admin.faq"); 
    178178$template_variables['admin.faq'] = $variables; 
    179179 
Note: See TracChangeset for help on using the changeset viewer.