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

    r1055 r1071  
    4545 
    4646// load the locales for this forum module 
    47 include PATH_LOCALE.LOCALESET."forum/main.php"; 
    48 include PATH_LOCALE.LOCALESET."forum/post.php"; 
     47locale_load("forum.main"); 
     48locale_load("forum.post"); 
    4949 
    5050// shared forum functions includes 
     
    893893 
    894894        // define the panel 
    895         $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.2', 'template' => 'forum.post.move.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."forum/main.php", PATH_LOCALE.LOCALESET."forum/post.php")); 
     895        $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.2', 'template' => 'forum.post.move.tpl', 'locale' => array("forum.main", "forum.post")); 
    896896        $template_variables['forum.movepost.2'] = $variables; 
    897897 
     
    930930 
    931931        // define the panel 
    932         $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.1', 'template' => 'forum.post.move.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."forum/main.php", PATH_LOCALE.LOCALESET."forum/post.php")); 
     932        $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.1', 'template' => 'forum.post.move.tpl', 'locale' => array("forum.main", "forum.post")); 
    933933        $template_variables['forum.movepost.1'] = $variables; 
    934934    }    
     
    10811081            $variables['attachtypes'] = str_replace(',', ' ', $settings['attachtypes']); 
    10821082            // define the panel 
    1083             $template_panels[] = array('type' => 'body', 'name' => 'forum.post', 'title' => $title, 'template' => 'forum.post.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."forum/main.php", PATH_LOCALE.LOCALESET."forum/post.php", PATH_LOCALE.LOCALESET."admin/forum_polls.php")); 
     1083            $template_panels[] = array('type' => 'body', 'name' => 'forum.post', 'title' => $title, 'template' => 'forum.post.tpl', 'locale' => array("forum.main", "forum.post", "admin.forum_polls")); 
    10841084            $template_variables['forum.post'] = $variables; 
    10851085            break; 
Note: See TracChangeset for help on using the changeset viewer.