From baa16b4831f2a64ab5febb1b690612f24bb72b8a Mon Sep 17 00:00:00 2001 From: "Christophe.Boulain" <> Date: Fri, 29 May 2009 06:54:24 +0000 Subject: Fixed Issue#164 --- HISTORY | 1 + framework/I18N/core/CultureInfo.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index ecf525d6..e3e78035 100644 --- a/HISTORY +++ b/HISTORY @@ -1,4 +1,5 @@ Version 3.1.6 to be released +BUG: Issue#164 - CultureInfo::validCulture should be declared as a static method (Christophe) Version 3.1.5 May 24, 2009 BUG: Issue#55 - TPropertyAccess.get and has don't recognize magic getter __get (Yves) diff --git a/framework/I18N/core/CultureInfo.php b/framework/I18N/core/CultureInfo.php index 7ee50bba..18aae74d 100644 --- a/framework/I18N/core/CultureInfo.php +++ b/framework/I18N/core/CultureInfo.php @@ -218,7 +218,7 @@ class CultureInfo * @param string a culture * @return boolean true if valid, false otherwise. */ - public function validCulture($culture) + public static function validCulture($culture) { if(preg_match('/^[_\\w]+$/', $culture)) return is_file(self::dataDir().$culture.self::fileExt()); -- cgit v1.2.3