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

    r834 r1071  
    1717 
    1818// load the locale for this module 
    19 include PATH_LOCALE.LOCALESET."admin/news-articles.php"; 
     19locale_load("admin.news-articles"); 
    2020 
    2121// temp storage for template variables 
     
    3939    // define the message panel variables 
    4040    $variables['bold'] = true; 
    41     $template_panels[] = array('type' => 'body', 'name' => 'admin.news_cats.delete', 'title' => $locale['430'], 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     41    $template_panels[] = array('type' => 'body', 'name' => 'admin.news_cats.delete', 'title' => $locale['430'], 'template' => '_message_table_panel.tpl', 'locale' => "admin.news-articles"); 
    4242    $template_variables['admin.news_cats.delete'] = $variables; 
    4343    $variables = array(); 
     
    8484 
    8585// define the admin body panel 
    86 $template_panels[] = array('type' => 'body', 'name' => 'admin.news_cats', 'title' => $title, 'template' => 'admin.news_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     86$template_panels[] = array('type' => 'body', 'name' => 'admin.news_cats', 'title' => $title, 'template' => 'admin.news_cats.tpl', 'locale' => "admin.news-articles"); 
    8787$template_variables['admin.news_cats'] = $variables; 
    8888 
Note: See TracChangeset for help on using the changeset viewer.