Fixed undefined variable

This commit is contained in:
evilbloodydemon 2011-05-17 15:29:21 +04:00
parent b6ef1305df
commit 5abd00e636

View file

@ -489,7 +489,7 @@ class View extends Object {
$this->output = $this->_render($layoutFileName, $dataForLayout, $loadHelpers, true); $this->output = $this->_render($layoutFileName, $dataForLayout, $loadHelpers, true);
if ($this->output === false) { if ($this->output === false) {
$this->output = $this->_render($layoutFileName, $data_for_layout); $this->output = $this->_render($layoutFileName, $dataForLayout);
trigger_error(sprintf(__("Error in layout %s, got: <blockquote>%s</blockquote>", true), $layoutFileName, $this->output), E_USER_ERROR); trigger_error(sprintf(__("Error in layout %s, got: <blockquote>%s</blockquote>", true), $layoutFileName, $this->output), E_USER_ERROR);
return false; return false;
} }