diff --git a/cake/libs/view/elements/dump.ctp b/cake/libs/view/elements/dump.ctp deleted file mode 100644 index 094b7868392..00000000000 --- a/cake/libs/view/elements/dump.ctp +++ /dev/null @@ -1,25 +0,0 @@ - -
-

-
-		
-	
-
\ No newline at end of file diff --git a/cake/libs/view/layouts/default.ctp b/cake/libs/view/layouts/default.ctp index f4beb7eed8a..6259b555f36 100644 --- a/cake/libs/view/layouts/default.ctp +++ b/cake/libs/view/layouts/default.ctp @@ -54,7 +54,6 @@ ?> - element('sql_dump'); ?> \ No newline at end of file diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index 0df79cd62f8..e435eb23bea 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -433,7 +433,6 @@ function render($action = null, $layout = null, $file = null) { * - `title_for_layout` - contains page title * - `content_for_layout` - contains rendered view file * - `scripts_for_layout` - contains scripts added to header - * - `cakeDebug` - if debug is on, cake debug information is added. * * @param string $content_for_layout Content to render in a view, wrapped by the surrounding layout. * @return mixed Rendered output, or false on error @@ -444,18 +443,9 @@ function renderLayout($content_for_layout, $layout = null) { return $this->output; } - $debug = ''; - - if (isset($this->viewVars['cakeDebug']) && Configure::read() > 2) { - $params = array('controller' => $this->viewVars['cakeDebug']); - $debug = View::element('dump', $params, false); - unset($this->viewVars['cakeDebug']); - } - $dataForLayout = array_merge($this->viewVars, array( 'content_for_layout' => $content_for_layout, 'scripts_for_layout' => implode("\n\t", $this->__scripts), - 'cakeDebug' => $debug )); if (!isset($dataForLayout['title_for_layout'])) {