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

    r1060 r1071  
    1717 
    1818// load the locale for this module 
    19 require_once PATH_LOCALE.LOCALESET."pm.php"; 
     19locale_load("main.pm"); 
    2020 
    2121// include the forum functions 
     
    10131013    } 
    10141014    // define the panel and assign the template variables 
    1015     $template_panels[] = array('type' => 'body', 'name' => 'pm.post', 'title' => $title, 'template' => 'main.pm.post.tpl', 'locale' => PATH_LOCALE.LOCALESET."pm.php"); 
     1015    $template_panels[] = array('type' => 'body', 'name' => 'pm.post', 'title' => $title, 'template' => 'main.pm.post.tpl', 'locale' => "main.pm"); 
    10161016    $template_variables['pm.post'] = $variables; 
    10171017 
     
    10301030        $variables['totals'] = $totals; 
    10311031        // define the panel and assign the template variables 
    1032         $template_panels[] = array('type' => 'body', 'name' => 'pm.options', 'title' => $locale['400'].' - '.$locale['425'], 'template' => 'main.pm.options.tpl', 'locale' => PATH_LOCALE.LOCALESET."pm.php"); 
     1032        $template_panels[] = array('type' => 'body', 'name' => 'pm.options', 'title' => $locale['400'].' - '.$locale['425'], 'template' => 'main.pm.options.tpl', 'locale' => "main.pm"); 
    10331033        $template_variables['pm.options'] = $variables; 
    10341034     
     
    10921092        $variables['pagenav_url'] = FUSION_SELF."?folder=".$folder."&"; 
    10931093        // define the panel and assign the template variables 
    1094         $template_panels[] = array('type' => 'body', 'name' => 'pm', 'title' => $locale['400'].' - '.$title, 'template' => 'main.pm.tpl', 'locale' => PATH_LOCALE.LOCALESET."pm.php"); 
     1094        $template_panels[] = array('type' => 'body', 'name' => 'pm', 'title' => $locale['400'].' - '.$title, 'template' => 'main.pm.tpl', 'locale' => "main.pm"); 
    10951095        $template_variables['pm'] = $variables; 
    10961096    } 
Note: See TracChangeset for help on using the changeset viewer.