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

    r834 r1071  
    1717 
    1818// load the locale for this module 
    19 include PATH_LOCALE.LOCALESET."admin/custom_pages.php"; 
     19locale_load("admin.custom_pages"); 
    2020 
    2121// temp storage for template variables 
     
    4747    // define the message panel variables 
    4848    $variables['bold'] = true; 
    49     $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/custom_pages.php"); 
     49    $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.custom_pages"); 
    5050    $template_variables['admin.custom_pages.status'] = $variables; 
    5151    $variables = array(); 
     
    9191 
    9292        $variables['message'] = $page_content; 
    93         $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages.preview', 'title' => $page_title, 'template' => '_message_table_panel.simple.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/custom_pages.php"); 
     93        $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages.preview', 'title' => $page_title, 'template' => '_message_table_panel.simple.tpl', 'locale' => "admin.custom_pages"); 
    9494        $template_variables['admin.custom_pages.preview'] = $variables; 
    9595        //$page_content = stripinput((QUOTES_GPC ? addslashes($page_content) : $page_content)); 
     
    147147 
    148148    // define the admin body panel 
    149     $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages', 'template' => 'admin.custom_pages.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/custom_pages.php"); 
     149    $template_panels[] = array('type' => 'body', 'name' => 'admin.custom_pages', 'template' => 'admin.custom_pages.tpl', 'locale' => "admin.custom_pages"); 
    150150    $template_variables['admin.custom_pages'] = $variables; 
    151151} 
Note: See TracChangeset for help on using the changeset viewer.