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

    r858 r1071  
    2020 
    2121//load the locale for this module 
    22 include PATH_LOCALE.LOCALESET."admin/user_groups.php"; 
     22locale_load("admin.user_groups"); 
    2323 
    2424//check if the user has a right to be here. If not, bail out 
     
    7474    // define the message panel variables 
    7575    $variables['bold'] = true; 
    76     $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"); 
    77     $template_variables['admin.article_cats.status'] = $variables; 
     76    $template_panels[] = array('type' => 'body', 'name' => 'admin.user_groups.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.user_groups"); 
     77    $template_variables['admin.user_groups.status'] = $variables; 
    7878    $variables = array(); 
    7979} 
     
    317317 
    318318// define the admin body panel 
    319 $template_panels[] = array('type' => 'body', 'name' => 'admin.user_groups', 'title' => $title, 'template' => 'admin.user_groups.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/user_groups.php"); 
     319$template_panels[] = array('type' => 'body', 'name' => 'admin.user_groups', 'title' => $title, 'template' => 'admin.user_groups.tpl', 'locale' => "admin.user_groups"); 
    320320$template_variables['admin.user_groups'] = $variables; 
    321321 
Note: See TracChangeset for help on using the changeset viewer.