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

    r834 r1071  
    1818define('AC_OVERVIEW_LIMIT', 5); 
    1919 
    20 include PATH_LOCALE.LOCALESET."article_cats.php"; 
     20// load the locale for this module 
     21locale_load("main.article_cats"); 
    2122 
    2223// make sure the cat_id is valid 
     
    8081 
    8182// define the body panel variables 
    82 $template_panels[] = array('type' => 'body', 'name' => 'article_cats', 'template' => 'main.article_cats.tpl', 'locale' => PATH_LOCALE.LOCALESET."article_cats.php"); 
     83$template_panels[] = array('type' => 'body', 'name' => 'article_cats', 'template' => 'main.article_cats.tpl', 'locale' => "main.article_cats"); 
    8384$template_variables['article_cats'] = $variables; 
    8485 
Note: See TracChangeset for help on using the changeset viewer.