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

    r1068 r1071  
    8585define("PATH_ADMIN", PATH_ROOT."administration/"); 
    8686define("PATH_THEMES", PATH_ROOT."themes/"); 
    87 define("PATH_THEME", PATH_ROOT."themes/PLiTheme/"); 
    88 define("PATH_LOCALE", PATH_ROOT."locale/"); 
     87define("PATH_THEME", PATH_ROOT."themes/ExiteCMS/"); 
    8988define("PATH_PHOTOS", PATH_ROOT."images/photoalbum/"); 
    9089define("PATH_IMAGES", PATH_ROOT."images/"); 
     
    9796define("PATH_INCLUDES", PATH_ROOT."includes/"); 
    9897define("PATH_MODULES", PATH_ROOT."modules/"); 
    99 define("PATH_ATTACHMENTS", PATH_ROOT."files/"); 
     98define("PATH_ATTACHMENTS", PATH_ROOT."files/attachments"); 
    10099 
    101100define("FUSION_SELF", isset($_SERVER['REDIRECT_URL']) && $_SERVER['REDIRECT_URL'] != "" ? basename($_SERVER['REDIRECT_URL']) : basename($_SERVER['PHP_SELF'])); 
     
    111110$step = (isset($_GET['step']) ? $_GET['step'] : "0"); 
    112111$variables['step'] = $step; 
    113 $localeset = (isset($_GET['localeset']) ? $_GET['localeset'] : "English"); 
    114 $variables['localeset'] = $localeset; 
    115 define("LOCALESET", $localeset.'/'); 
     112$settings = array("locale" => (isset($_GET['localeset']) ? $_GET['localeset'] : "English")); 
     113$variables['localeset'] = $settings['locale']; 
    116114 
    117115// check if the cache directories are writeable 
     
    156154 
    157155require_once PATH_ROOT."includes/theme_functions.php"; 
     156require_once PATH_ROOT."includes/locale_functions.php"; 
    158157 
    159158// load the locale for this module 
    160 include PATH_LOCALE.$localeset."/setup.php"; 
     159locale_load("main.setup"); 
    161160 
    162161// process the different setup steps 
     
    392391 
    393392// define the setup body panel variables 
    394 $template_panels[] = array('type' => 'body', 'name' => 'setup', 'template' => 'main.setup.tpl', 'locale' => PATH_LOCALE.$localeset."/setup.php"); 
     393$template_panels[] = array('type' => 'body', 'name' => 'setup', 'template' => 'main.setup.tpl', 'locale' => "main.setup"); 
    395394$template_variables['setup'] = $variables; 
    396395 
Note: See TracChangeset for help on using the changeset viewer.