diff --git a/src/debug2.cls.php b/src/debug2.cls.php index 55c0b1e6a..6ab317e3c 100644 --- a/src/debug2.cls.php +++ b/src/debug2.cls.php @@ -89,7 +89,7 @@ public static function FilePath($type) if ($type == 'debug.purge') { $type = 'purge'; } - $rand = defined('AUTH_KEY') ? substr(md5(substr(AUTH_KEY, -16)), -16) : ''; + $rand = substr(md5(substr(defined('AUTH_KEY') ? AUTH_KEY : md5(__FILE__), -16)), -16); return $type . $rand . '.log'; }