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

    r834 r1071  
    1717 
    1818// load the locale for this module 
    19 include PATH_LOCALE.LOCALESET."admin/news-articles.php"; 
     19locale_load("admin.news-articles"); 
    2020 
    2121// temp storage for template variables 
     
    4141    // define the message panel variables 
    4242    $variables['bold'] = true; 
    43     $template_panels[] = array('type' => 'body', 'name' => 'admin.article.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     43    $template_panels[] = array('type' => 'body', 'name' => 'admin.article.status', 'title' => $title, 'template' => '_message_table_panel.tpl', 'locale' => "admin.news-articles"); 
    4444    $template_variables['admin.article.status'] = $variables; 
    4545    $variables = array(); 
     
    5252    $variables['message'] = $locale['518']."<br />".$locale['519']."<br /><a href='article_cats.php".$aidlink."'>".$locale['520']."</a>".$locale['521']; 
    5353    $variables['bold'] = true; 
    54     $template_panels[] = array('type' => 'body', 'name' => 'admin.article.no_cats', 'title' => $locale['517'], 'template' => '_message_table_panel.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     54    $template_panels[] = array('type' => 'body', 'name' => 'admin.article.no_cats', 'title' => $locale['517'], 'template' => '_message_table_panel.tpl', 'locale' => "admin.news-articles"); 
    5555    $template_variables['admin.article.no_cats'] = $variables; 
    5656    $variables = array(); 
     
    101101            $ratings = isset($_POST['article_ratings']); 
    102102            $variables['message'] = $bodypreview; 
    103             $template_panels[] = array('type' => 'body', 'name' => 'admin.article.preview1', 'title' => $subject, 'template' => '_message_table_panel.simple.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     103            $template_panels[] = array('type' => 'body', 'name' => 'admin.article.preview1', 'title' => $subject, 'template' => '_message_table_panel.simple.tpl', 'locale' => "admin.news-articles"); 
    104104            $template_variables['admin.article.preview1'] = $variables; 
    105105            $variables['message'] = $body2preview; 
    106             $template_panels[] = array('type' => 'body', 'name' => 'admin.article.preview2', 'title' => $subject, 'template' => '_message_table_panel.simple.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     106            $template_panels[] = array('type' => 'body', 'name' => 'admin.article.preview2', 'title' => $subject, 'template' => '_message_table_panel.simple.tpl', 'locale' => "admin.news-articles"); 
    107107            $template_variables['admin.article.preview2'] = $variables; 
    108108            $variables = array(); 
     
    163163 
    164164        // define the admin body panel 
    165         $template_panels[] = array('type' => 'body', 'name' => 'admin.articles', 'template' => 'admin.articles.tpl', 'locale' => PATH_LOCALE.LOCALESET."admin/news-articles.php"); 
     165        $template_panels[] = array('type' => 'body', 'name' => 'admin.articles', 'template' => 'admin.articles.tpl', 'locale' => "admin.news-articles"); 
    166166        $template_variables['admin.articles'] = $variables; 
    167167    } 
Note: See TracChangeset for help on using the changeset viewer.