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