From 6efe61d9b20401d9bc7a497e33beb3d12cb55f5c Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sat, 19 Dec 2009 12:30:31 -0500 Subject: [PATCH] Removing controller dump and debug = 3 support from View. Controller dumps often cause memory overflow errors, and are generally not useful. --- cake/libs/view/elements/dump.ctp | 25 ------------------------- cake/libs/view/layouts/default.ctp | 1 - cake/libs/view/view.php | 10 ---------- 3 files changed, 36 deletions(-) delete mode 100644 cake/libs/view/elements/dump.ctp 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'])) {