summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/core.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/core.php b/framework/core.php
index 6c31bc55..3f5493d5 100644
--- a/framework/core.php
+++ b/framework/core.php
@@ -752,9 +752,9 @@ class PradoBase
*/
public static function trace($msg,$category='Uncategorized')
{
- if(self::$_application && self::$_application->getMode()==='Performance')
+ if(self::$_application && self::$_application->getMode()===TApplication::STATE_PERFORMANCE)
return;
- if(!self::$_application || self::$_application->getMode()==='Debug')
+ if(!self::$_application || self::$_application->getMode()===TApplication::STATE_DEBUG)
{
$trace=debug_backtrace();
if(isset($trace[0]['file']) && isset($trace[0]['line']))