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

    r991 r1071  
    2121 
    2222// load this module's locales 
    23 include PATH_LOCALE.LOCALESET."downloads.php"; 
     23locale_load("main.downloads"); 
    2424 
    2525function countdownloads($cat_id) { 
     
    121121 
    122122// define the body panel variables 
    123 $template_panels[] = array('type' => 'body', 'name' => 'downloads', 'template' => 'main.downloads.tpl', 'locale' => PATH_LOCALE.LOCALESET."downloads.php"); 
     123$template_panels[] = array('type' => 'body', 'name' => 'downloads', 'template' => 'main.downloads.tpl', 'locale' => "main.downloads"); 
    124124$template_variables['downloads'] = $variables; 
    125125 
Note: See TracChangeset for help on using the changeset viewer.