diff options
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)) |