mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing shutup operator from View::_render()
Errors in your views will not be suppressed when debug = 0 anymore. Fixes #943
This commit is contained in:
parent
f61e8b48b6
commit
1166806218
1 changed files with 1 additions and 5 deletions
|
@ -673,11 +673,7 @@ class View extends Object {
|
||||||
extract($___dataForView, EXTR_SKIP);
|
extract($___dataForView, EXTR_SKIP);
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
if (Configure::read('debug') > 0) {
|
include $___viewFn;
|
||||||
include ($___viewFn);
|
|
||||||
} else {
|
|
||||||
@include ($___viewFn);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($loadHelpers === true) {
|
if ($loadHelpers === true) {
|
||||||
$this->Helpers->trigger('afterRender', array(&$this));
|
$this->Helpers->trigger('afterRender', array(&$this));
|
||||||
|
|
Loading…
Add table
Reference in a new issue