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

    r843 r1071  
    1919 
    2020// load this module's locales 
    21 include PATH_LOCALE.LOCALESET."news_cats.php"; 
     21locale_load("main.news_cats"); 
    2222 
    2323// make sure the cat_id is valid 
     
    7979 
    8080// define the body panel variables 
    81 $template_panels[] = array('type' => 'body', 'name' => 'news_cats', 'template' => 'main.news_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."news_cats.php"); 
     81$template_panels[] = array('type' => 'body', 'name' => 'news_cats', 'template' => 'main.news_cats.tpl', 'locale' => "main.news_cats"); 
    8282$template_variables['news_cats'] = $variables; 
    8383 
Note: See TracChangeset for help on using the changeset viewer.