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

    r864 r1071  
    1717 
    1818// load the locales for this module 
    19 include PATH_LOCALE.LOCALESET."admin/forums.php"; 
    20 include PATH_LOCALE.LOCALESET."admin/forum_polls.php"; 
     19locale_load("admin.forums"); 
     20locale_load("admin.forum_polls"); 
    2121 
    2222// temp storage for template variables 
     
    116116    // define the message panel variables 
    117117    $variables['bold'] = true; 
    118     $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/forums.php"); 
     118    $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.forums"); 
    119119    $template_variables['admin.forums.status'] = $variables; 
    120120    $variables = array(); 
     
    551551 
    552552// define the admin body panel 
    553 $template_panels[] = array('type' => 'body', 'name' => 'admin.forums', 'template' => 'admin.forums.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."admin/forums.php",PATH_LOCALE.LOCALESET."admin/forum_polls.php")); 
     553$template_panels[] = array('type' => 'body', 'name' => 'admin.forums', 'template' => 'admin.forums.tpl', 'locale' => array("admin.forums","admin.forum_polls")); 
    554554$template_variables['admin.forums'] = $variables; 
    555555 
Note: See TracChangeset for help on using the changeset viewer.