Small tweak to prevent the render error when looking at a debug grid query.
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@749 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -511,6 +511,7 @@ class AppController extends Controller {
|
||||
$xml = preg_replace("/</", "<", $xml);
|
||||
$xml = preg_replace("/>/", ">", $xml);
|
||||
echo ("\n<PRE>\n$xml\n</PRE>\n");
|
||||
$this->render_empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1019,9 +1020,8 @@ class AppController extends Controller {
|
||||
}
|
||||
|
||||
function gridDataOutputHeader(&$params, &$model) {
|
||||
if (!$params['debug']) {
|
||||
if (!$params['debug'])
|
||||
header("Content-type: text/xml;charset=utf-8");
|
||||
}
|
||||
}
|
||||
|
||||
function gridDataOutputXMLHeader(&$params, &$model) {
|
||||
|
||||
Reference in New Issue
Block a user