Modified INTERNAL_ERROR to support inclusion of the blank layout, since all the javascript is lost otherwise. This should only matter for development. Also, fixed a bug with rendering when redirect is called but headers have already been output.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@560 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-14 21:10:16 +00:00
parent 41321481c7
commit 778bb43895
3 changed files with 32 additions and 11 deletions

View File

@@ -108,7 +108,7 @@ class AppController extends Controller {
// the debug output. So, since we can't redirect
// anyway, we may as well go with the flow and just
// render this page instead, using an empty template
$this->render('/empty');
echo $this->render('/empty');
if ($exit)
$this->_stop();
}
@@ -862,5 +862,15 @@ class AppController extends Controller {
echo " <cell><![CDATA[$data]]></cell>\n";
}
function INTERNAL_ERROR($msg, $depth = 0) {
INTERNAL_ERROR($msg, false, $depth+1);
$this->render_empty();
$this->_stop();
}
function render_empty() {
$this->render('/empty');
}
}
?>