X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHooks.php;h=511781dbbd300c0107b712a39bb3cd41eb2f5fd3;hb=948f28ad2c02b63c38f79e2798fa7794169dcb04;hp=b6c194c12ac14f4e6871b95fbba1c91ae48c1d81;hpb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Hooks.php b/includes/Hooks.php index b6c194c12a..511781dbbd 100644 --- 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 ) { - if ( !defined( 'MW_PHPUNIT_TEST' ) ) { + if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) { throw new MWException( 'Cannot reset hooks in operation.' ); }