Quote:
Originally posted by nakkid
yr referring at $PHP_SELF? it doesnt really matter since i want to read the actual file i view. let me know if i'm correct.
|
No, I am talking about DEBUG - a constand. You have in your code something like this:
Code:
$debug = (DEBUG) ? 'Debug Mode' : '';
Which is not correct, because there is no such constant. Not in PHP nor in vBulletin.
And since vBulletin runs on error reporting level of 7, PHP doesn't warn you and treats it as a string. And since that string always evaluates to TRUE, you will always get 'Debug Mode'.