Changeset 1875 in ExiteCMS for trunk/includes/locale_functions.php


Ignore:
Timestamp:
10/19/08 16:20:21 (4 years ago)
Author:
hverton
Message:

updated the setup procedure to set the language choosen at setup time to be the default site language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/locale_functions.php

    r1776 r1875  
    257257            require $locales_file; 
    258258        } else { 
    259             // otherwise, if the locale is not English, try to load the system locale version 
    260             if ($locale_code != "en") { 
    261                 // retrieve the info for the system locale (which is the first one installed!) 
    262                 $result = dbquery("SELECT * FROM ".$db_prefix."locale ORDER BY locale_id LIMIT 1"); 
     259            // otherwise, if the locale is not the default system locale, try to load the system locale version 
     260            if ($locale_code != $settings['default_locale']) { 
     261                // retrieve the info for the system locale 
     262                $result = dbquery("SELECT * FROM ".$db_prefix."locale WHERE locale_code = '".$settings['default_locale']."'"); 
    263263                if (dbrows($result)) { 
    264264                    $data = dbarray($result); 
Note: See TracChangeset for help on using the changeset viewer.