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

    r954 r1071  
    2020 
    2121// load the locale for this module 
    22 include PATH_LOCALE.LOCALESET."print.php"; 
     22locale_load("main.print"); 
    2323 
    2424if (!isset($item_id) || !isNum($item_id)) fallback("index.php"); 
     
    5656 
    5757// define the first body panel variables 
    58 $template_panels[] = array('type' => 'body', 'name' => 'print', 'template' => 'main.print.tpl', 'locale' => PATH_LOCALE.LOCALESET."print.php"); 
     58$template_panels[] = array('type' => 'body', 'name' => 'print', 'template' => 'main.print.tpl', 'locale' => "main.print"); 
    5959$template_variables['print'] = $variables; 
    6060 
Note: See TracChangeset for help on using the changeset viewer.