- debugging() returns true when debugging is enabled in the config file

This commit is contained in:
Jonathan Ernst
2004-12-19 17:46:41 +00:00
committed by WineHQ
parent 8968a68033
commit 8d8c98bc46

View File

@@ -325,10 +325,7 @@ function isSuperMaintainer($appId)
function debugging()
{
return true;
if(!loggedin())
return false;
return $_SESSION['current']->getpref("debug") == "yes";
return ((loggedin() && $_SESSION['current']->getpref("debug") == "yes") || APPDB_DEBUG == 1);
}