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

    r834 r1071  
    1717 
    1818// load the locale for this module 
    19 include PATH_LOCALE.LOCALESET."custom_pages.php"; 
     19locale_load("main.custom_pages"); 
    2020 
    2121// temp storage for template variables 
     
    4747 
    4848// define the search body panel variables 
    49 $template_panels[] = array('type' => 'body', 'name' => 'viewpage', 'title' => $title, 'template' => 'main.viewpage.tpl', 'locale' => PATH_LOCALE.LOCALESET."custom_pages.php"); 
     49$template_panels[] = array('type' => 'body', 'name' => 'viewpage', 'title' => $title, 'template' => 'main.viewpage.tpl', 'locale' => "main.custom_pages"); 
    5050$template_variables['viewpage'] = $variables; 
    5151 
Note: See TracChangeset for help on using the changeset viewer.