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