/** * * Language loader ( from the DB ) * */ public function loadLanguage($lang, $category) { //see if we have the language saved in the db $messages = $this->getConfigValue('messages'); if (empty($messages)) { $messages = SyC::loadFileLanguage($lang, $category); } //make sure we have an array for this variable if (!is_array($messages)) { $messages = array(); } return $messages; }