Changeset 619


Ignore:
Timestamp:
Dec 4, 2013, 1:07:24 AM (11 years ago)
Author:
chronos
Message:
  • Modified: Rename class Locale which colide with intl extension.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/install.php

    r611 r619  
    1212include_once(dirname(__FILE__).'/../includes/Version.php');
    1313include_once(dirname(__FILE__).'/../includes/Locale.php');
    14 $Locale = new Locale();
     14$Locale = new LocaleFile();
    1515$Locale->Dir = dirname(__FILE__).'/../locale';
    1616$Locale->Load($Config['Web']['Locale']);
  • trunk/includes/Locale.php

    r618 r619  
    2626}
    2727
    28 class Locale extends Model
     28class LocaleFile extends Model
    2929{
    3030        var $Texts;
     
    167167                parent::__construct($System);
    168168                $this->Codes = array('en');
    169                 $this->CurrentLocale = new Locale($System);             
     169                $this->CurrentLocale = new LocaleFile($System);         
    170170        }
    171171       
     
    179179          {             
    180180                $Code = substr($FileName, 0, -4);
    181                 $Locale = new Locale($this->System);
     181                $Locale = new LocaleFile($this->System);
    182182                $Locale->Dir = $this->Dir;
    183183                $Locale->Load($Code);
     
    189189        function UpdateAll($Directory)
    190190        {
    191                 $Locale = new Locale($this->System);
     191                $Locale = new LocaleFile($this->System);
    192192                $Locale->AnalyzeCode($Directory);
    193193          $FileList = scandir($this->Dir);
     
    196196          if(substr($FileName, -4) == '.php')
    197197          {             
    198                   $FileLocale = new Locale($this->System);
     198                  $FileLocale = new LocaleFile($this->System);
    199199                  $FileLocale->Dir = $this->Dir;                 
    200200                  $FileLocale->Load(substr($FileName, 0, -4));
  • trunk/includes/Version.php

    r618 r619  
    66// and system will need database update.
    77
    8 $Revision = 618; // Subversion revision
     8$Revision = 619; // Subversion revision
    99$DatabaseRevision = 610; // Database structure revision
    1010$ReleaseTime = '2013-12-04';
Note: See TracChangeset for help on using the changeset viewer.