This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
core/controllers/components Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -444,24 +444,7 @@ public function installModule($moduleName)
444
444
445
445
try {
446
446
$ configDatabase = Zend_Registry::get ('configDatabase ' );
447
- if (empty ($ configDatabase ->database ->params ->driver_options )) {
448
- $ driverOptions = array ();
449
- } else {
450
- $ driverOptions = $ configDatabase ->database ->params ->driver_options ->toArray ();
451
- }
452
- $ params = array (
453
- 'dbname ' => $ configDatabase ->database ->params ->dbname ,
454
- 'username ' => $ configDatabase ->database ->params ->username ,
455
- 'password ' => $ configDatabase ->database ->params ->password ,
456
- 'driver_options ' => $ driverOptions ,
457
- );
458
- if (empty ($ configDatabase ->database ->params ->unix_socket )) {
459
- $ params ['host ' ] = $ configDatabase ->database ->params ->host ;
460
- $ params ['port ' ] = $ configDatabase ->database ->params ->port ;
461
- } else {
462
- $ params ['unix_socket ' ] = $ configDatabase ->database ->params ->unix_socket ;
463
- }
464
- $ db = Zend_Db::factory ($ configDatabase ->database ->adapter , $ params );
447
+ $ db = Zend_Registry::get ('dbAdapter ' );
465
448
466
449
switch ($ configDatabase ->database ->adapter ) {
467
450
case 'PDO_MYSQL ' :
You can’t perform that action at this time.
0 commit comments