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

    r834 r1071  
    1717 
    1818// load the locale for this module 
    19 require_once PATH_LOCALE.LOCALESET."admin/news-articles.php"; 
     19locale_load("admin.news-articles"); 
    2020 
    2121// temp storage for template variables 
     
    3838    // define the message panel variables 
    3939    $variables['bold'] = true; 
    40     $template_panels[] = array('type' => 'body', 'name' => 'admin.article_cats.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     40    $template_panels[] = array('type' => 'body', 'name' => 'admin.article_cats.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.news-articles"); 
    4141    $template_variables['admin.article_cats.status'] = $variables; 
    4242    $variables = array(); 
     
    118118 
    119119// define the admin body panel 
    120 $template_panels[] = array('type' => 'body', 'name' => 'admin.article_cats', 'title' => $title, 'template' => 'admin.article_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     120$template_panels[] = array('type' => 'body', 'name' => 'admin.article_cats', 'title' => $title, 'template' => 'admin.article_cats.tpl', 'locale' => "admin.news-articles"); 
    121121$template_variables['admin.article_cats'] = $variables; 
    122122 
Note: See TracChangeset for help on using the changeset viewer.