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
Merge "Ensure users are able to edit the page after changing the content model"
[lhc/web/wiklou.git]
/
includes
/
Hooks.php
diff --git
a/includes/Hooks.php
b/includes/Hooks.php
index
b6c194c
..
511781d
100644
(file)
--- a/
includes/Hooks.php
+++ b/
includes/Hooks.php
@@
-64,7
+64,7
@@
class Hooks {
* @throws MWException If not in testing mode.
*/
public static function clear( $name ) {
* @throws MWException If not in testing mode.
*/
public static function clear( $name ) {
- if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
+ if ( !defined( 'MW_PHPUNIT_TEST' )
&& !defined( 'MW_PARSER_TEST' )
) {
throw new MWException( 'Cannot reset hooks in operation.' );
}
throw new MWException( 'Cannot reset hooks in operation.' );
}