summaryrefslogtreecommitdiff
path: root/framework/Util
diff options
context:
space:
mode:
authorgodzilla80@gmx.net <>2009-06-07 13:02:41 +0000
committergodzilla80@gmx.net <>2009-06-07 13:02:41 +0000
commitcb0f97438fe634c5a95179d47c78af04fffa751b (patch)
treefc7aeb3c32854b68e9a5e907e70cf0b2f521afb5 /framework/Util
parent0847a5cb9bc02872e472622e1eec56896a412078 (diff)
parent5eca5a71c6d3ce82bb15bce57a06f7d84b011c8f (diff)
Merging latest 3.1 changes into trunk (r2672-2677)
Diffstat (limited to 'framework/Util')
-rw-r--r--framework/Util/TLogRouter.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php
index cc736fae..a8f42b56 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -1046,6 +1046,18 @@ class TFirePhpLogRoute extends TLogRoute
{
if(empty($logs) || $this->getApplication()->getMode()==='Performance') return;
+ if( headers_sent() ) {
+ echo '
+ <div style="width:100%; background-color:darkred; color:#FFF; padding:2px">
+ TFirePhpLogRoute.GroupLabel "<i>' . $this -> getGroupLabel() . '</i>" -
+ Routing to FirePHP impossible, because headers already sent!
+ </div>
+ ';
+ $fallback = new TBrowserLogRoute();
+ $fallback->processLogs($logs);
+ return;
+ }
+
require_once Prado::getPathOfNamespace('System.3rdParty.FirePHPCore') . '/FirePHP.class.php';
$firephp = FirePHP::getInstance(true);
$firephp -> setOptions(array('useNativeJsonEncode' => false));