diff options
author | emkael <emkael@tlen.pl> | 2016-04-20 17:23:51 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-04-20 17:23:51 +0200 |
commit | c7dcaab5a61e2fdb132fc48c7b92dfad89408a1f (patch) | |
tree | 9e4383afd468707d642309fb25d1618188610b47 /app/php/db/DBModule.php | |
parent | d923fd65d3d70f80852bb53b77f2724fecccb7d9 (diff) |
* no hard-coded class names
Diffstat (limited to 'app/php/db/DBModule.php')
-rw-r--r-- | app/php/db/DBModule.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/php/db/DBModule.php b/app/php/db/DBModule.php index 592dc12..462b6f6 100644 --- a/app/php/db/DBModule.php +++ b/app/php/db/DBModule.php @@ -7,15 +7,14 @@ class DBModule extends TDataSourceConfig { private $_config; public function init($xml) { - $this->setConnectionClass('Application.db.DBConnection'); - $config = json_decode(file_get_contents( - Prado::getPathOfNamespace($this->_config, '.json') - )); $newXML = new TXmlElement('module'); foreach ($xml->getAttributes() as $attr => $val) { $newXML->setAttribute($attr, $val); } $dbXML = new TXmlElement('database'); + $config = json_decode(file_get_contents( + Prado::getPathOfNamespace($this->_config, '.json') + )); if (isset($config->cset)) { $dbXML->setAttribute('Charset', $config->cset); } |