[RSS Feed/News] Using DebugMode for IF/ELSE

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I have a logging routine and want to log just when debug mode is enabled. I have tried to use..
PHP:

Code:
if(\XF::$debugMode)
{
    //Logroutine
}
..but is doesn't work. I also found $this->assertDebugMode() but i can't call these method.

Is there another way to ask for debug mode?

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom