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

    r1012 r1071  
    2626 
    2727// load the locales for this forum module 
    28 require_once PATH_LOCALE.LOCALESET."forum/main.php"; 
    29 require_once PATH_LOCALE.LOCALESET."admin/forum_polls.php"; 
     28locale_load("forum.main"); 
     29locale_load("admin.forum_polls"); 
    3030 
    3131// needed for localisation functions 
     
    181181 
    182182// define the search body panel variables 
    183 $template_panels[] = array('type' => 'body', 'name' => 'forum.viewforum', 'template' => 'forum.viewforum.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."forum/main.php",PATH_LOCALE.LOCALESET."admin/forum_polls.php")); 
     183$template_panels[] = array('type' => 'body', 'name' => 'forum.viewforum', 'template' => 'forum.viewforum.tpl', 'locale' => array("forum.main","admin.forum_polls")); 
    184184$template_variables['forum.viewforum'] = $variables; 
    185185 
Note: See TracChangeset for help on using the changeset viewer.