From 9aabc8c893215810ed5e71c6558ae9f724805167 Mon Sep 17 00:00:00 2001 From: "renan.saddam" Date: Thu, 15 Jan 2009 02:33:50 +0000 Subject: [PATCH] Removing non-used extract() from missingDatabase() git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8000 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/error.php | 1 - cake/libs/cache.php | 3 +-- cake/libs/error.php | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) 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) ));