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

    r1012 r1071  
    2323 
    2424// load the locale for this forum module 
    25 include PATH_LOCALE.LOCALESET."forum/main.php"; 
     25locale_load("forum.main"); 
    2626 
    2727// load the advertisement include module and get an ad for this forum page 
     
    8888 
    8989// define the search body panel variables 
    90 $template_panels[] = array('type' => 'body', 'name' => 'forum.index', 'template' => 'forum.index.tpl', 'locale' => PATH_LOCALE.LOCALESET."forum/main.php"); 
     90$template_panels[] = array('type' => 'body', 'name' => 'forum.index', 'template' => 'forum.index.tpl', 'locale' => "forum.main"); 
    9191$template_variables['forum.index'] = $variables; 
    9292 
Note: See TracChangeset for help on using the changeset viewer.