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

    r834 r1071  
    1717 
    1818// load the locale for this module 
    19 include PATH_LOCALE.LOCALESET."admin/image_uploads.php"; 
     19locale_load("admin.image_uploads"); 
    2020 
    2121// temp storage for template variables 
     
    5555    // define the message panel variables 
    5656    $variables['bold'] = true; 
    57     $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/forums.php"); 
     57    $template_panels[] = array('type' => 'body', 'name' => 'admin.forums.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.forums"); 
    5858    $template_variables['admin.forums.status'] = $variables; 
    5959    $variables = array(); 
     
    105105 
    106106// define the admin body panel 
    107 $template_panels[] = array('type' => 'body', 'name' => 'admin.images', 'template' => 'admin.images.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/image_uploads.php"); 
     107$template_panels[] = array('type' => 'body', 'name' => 'admin.images', 'template' => 'admin.images.tpl', 'locale' => "admin.image_uploads"); 
    108108$template_variables['admin.images'] = $variables; 
    109109 
Note: See TracChangeset for help on using the changeset viewer.