From c897ea9217338c0b5710d5d929e3c2711b6a4089 Mon Sep 17 00:00:00 2001 From: DSB Date: Thu, 9 Aug 2012 18:06:21 +0000 Subject: [PATCH] Fixed creation of a new database --- application/controllers/SqlController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/application/controllers/SqlController.php b/application/controllers/SqlController.php index 9c4348b..7fda5b5 100644 --- a/application/controllers/SqlController.php +++ b/application/controllers/SqlController.php @@ -179,10 +179,7 @@ class SqlController extends Msd_Controller_Action $newDbInfo['dbCollation'] ); //db created - refresh db list for menu - $this->view->config->set( - 'dynamic.dbActual', - $newDbInfo['dbName'] - ); + $this->_dynamicConfig->setParam('dbActual', $newDbInfo['dbName']); $this->_refreshDbList('create.database'); } catch (Msd_Exception $e) { $dbCreated = false; @@ -195,6 +192,7 @@ class SqlController extends Msd_Controller_Action $this->view->errorInfo = $errorInfo; } $this->view->newDbInfo = $newDbInfo; + $this->view->dynamicConfig = $this->_dynamicConfig; } /**