diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2012-02-18 00:07:50 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2012-02-18 00:07:50 +0000 |
commit | 14691cd854be3e9ee272c9619a6368c83d72267b (patch) | |
tree | 89215d53db8d6f01bb24a5c1d30d9dd4c8d7a5b9 /h-source/Library/Model | |
parent | a2c0b2c4f80463a94e2dd87b59f193ab3aa925eb (diff) |
upload new EasyGiant library and added added a new filter for the model name (part 2)
Diffstat (limited to 'h-source/Library/Model')
-rwxr-xr-x | h-source/Library/Model/Base.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/h-source/Library/Model/Base.php b/h-source/Library/Model/Base.php index 57d769a..4162a56 100755 --- a/h-source/Library/Model/Base.php +++ b/h-source/Library/Model/Base.php @@ -121,7 +121,7 @@ abstract class Model_Base protected $_arraySoftCheck; //Array_Validate_Soft object public $db; //reference to the database layer class - protected $_lang = 'En'; //language of notices + protected $_lang = null; //language of notices public function __construct() { @@ -136,6 +136,9 @@ abstract class Model_Base $this->identifierName = $this->_idFieldsArray[0]; + //set the language of notices + $this->_lang = Params::$language; + //create the $_resultString object (result strings of the db queries) $modelStringClass = 'Lang_'.$this->_lang.'_ModelStrings'; if (!class_exists($modelStringClass)) |