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

    r863 r1071  
    1616 
    1717// load the locale for this include 
    18 include PATH_LOCALE.LOCALESET."comments.php"; 
     18locale_load("main.comments"); 
    1919 
    2020// function to display the comments panel 
     
    7979 
    8080    // define the body panel variables 
    81     $template_panels[] = array('type' => 'body', 'name' => 'comments_include', 'template' => 'include.comments.tpl', 'locale' => PATH_LOCALE.LOCALESET."comments.php"); 
     81    $template_panels[] = array('type' => 'body', 'name' => 'comments_include', 'template' => 'include.comments.tpl', 'locale' => "main.comments"); 
    8282    $template_variables['comments_include'] = $variables; 
    8383} 
Note: See TracChangeset for help on using the changeset viewer.