dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MWDebugTest: disable MWDebug on test teardown
[lhc/web/wiklou.git]
/
includes
/
debug
/
MWDebug.php
diff --git
a/includes/debug/MWDebug.php
b/includes/debug/MWDebug.php
index
13d25a8
..
d90ef8a
100644
(file)
--- a/
includes/debug/MWDebug.php
+++ b/
includes/debug/MWDebug.php
@@
-75,6
+75,15
@@
class MWDebug {
self::$enabled = true;
}
+ /**
+ * Disable the debugger.
+ *
+ * @since 1.28
+ */
+ public static function deinit() {
+ self::$enabled = false;
+ }
+
/**
* Add ResourceLoader modules to the OutputPage object if debugging is
* enabled.