Archived
1
0
Fork 0

library/Fiktiv/Controller/Plugin/Language.php: get default database.

This commit is contained in:
Henrik Hautakoski 2015-01-31 13:13:37 +01:00
parent cafd63b4a3
commit ecc33faba9

View file

@ -41,7 +41,7 @@ class Fiktiv_Controller_Plugin_Language extends Zend_Controller_Plugin_Abstract
Zend_Registry::set('Zend_Locale', new Zend_Locale($lookup[$lang]));
$database = $bootstrap->getResource('database');
$database = Zend_Db_Table::getDefaultAdapter();
$database->query("SET lc_time_names = ?;", $lookup[$lang]);
}