Permalink
Browse files

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
  • Loading branch information...
1 parent 157ee1e commit 9aabc8c893215810ed5e71c6558ae9f724805167 @renan renan committed Jan 15, 2009
Showing with 1 addition and 5 deletions.
  1. +0 −1 cake/console/error.php
  2. +1 −2 cake/libs/cache.php
  3. +0 −2 cake/libs/error.php
View
@@ -136,7 +136,6 @@ function missingTable($params) {
* @access public
*/
function missingDatabase($params = array()) {
- extract($params, EXTR_OVERWRITE);
$this->stderr(__("Missing Database", true));
$this->_stop();
}
View
@@ -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
View
@@ -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)
));

0 comments on commit 9aabc8c

Please sign in to comment.