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

    r948 r1071  
    2020 
    2121// load the locales for this forum module 
    22 require_once PATH_LOCALE.LOCALESET."forum/main.php"; 
    23 require_once PATH_LOCALE.LOCALESET."admin/forum_polls.php"; 
     22locale_load("forum.main"); 
     23locale_load("admin.forum_polls"); 
    2424 
    2525// needed for localisation functions 
     
    389389 
    390390// define the search body panel variables 
    391 $template_panels[] = array('type' => 'body', 'name' => 'forum.viewthread', 'template' => 'forum.viewthread.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."forum/main.php",PATH_LOCALE.LOCALESET."admin/forum_polls.php")); 
     391$template_panels[] = array('type' => 'body', 'name' => 'forum.viewthread', 'template' => 'forum.viewthread.tpl', 'locale' => array("forum.main","admin.forum_polls")); 
    392392$template_variables['forum.viewthread'] = $variables; 
    393393 
Note: See TracChangeset for help on using the changeset viewer.