diff --git a/cake/console/error.php b/cake/console/error.php index a559af785..9c88a40b8 100644 --- a/cake/console/error.php +++ b/cake/console/error.php @@ -136,7 +136,6 @@ class ErrorHandler extends Object { * @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 bcbfc0c4b..9f689d391 100644 --- a/cake/libs/cache.php +++ b/cake/libs/cache.php @@ -213,8 +213,7 @@ class Cache extends Object { 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 88435a8be..ff2c61367 100644 --- a/cake/libs/error.php +++ b/cake/libs/error.php @@ -230,8 +230,6 @@ class ErrorHandler extends Object { * @access public */ function missingDatabase($params = array()) { - extract($params, EXTR_OVERWRITE); - $this->controller->set(array( 'title' => __('Scaffold Missing Database Connection', true) ));