diff --git a/cake/console/error.php b/cake/console/error.php index a559af78549..9c88a40b8a9 100644 --- a/cake/console/error.php +++ b/cake/console/error.php @@ -136,7 +136,6 @@ function missingTable($params) { * @access public */ function missingDatabase($params = array()) { - extract($params, EXTR_OVERWRITE); $this->stderr(__("Missing Database", true)); $this->_stop(); } diff --git a/cake/libs/cache.php b/cake/libs/cache.php index bcbfc0c4b0c..9f689d39158 100644 --- a/cake/libs/cache.php +++ b/cake/libs/cache.php @@ -213,8 +213,7 @@ function set($settings = array(), $value = null) { function gc() { $_this =& Cache::getInstance(); $config = $_this->config(); - extract($config); - $_this->_Engine[$engine]->gc(); + $_this->_Engine[$config['engine']]->gc(); } /** * Write data for key into cache diff --git a/cake/libs/error.php b/cake/libs/error.php index 88435a8beb6..ff2c613679e 100644 --- a/cake/libs/error.php +++ b/cake/libs/error.php @@ -230,8 +230,6 @@ function missingTable($params) { * @access public */ function missingDatabase($params = array()) { - extract($params, EXTR_OVERWRITE); - $this->controller->set(array( 'title' => __('Scaffold Missing Database Connection', true) ));