Show parser output for diffs unless extension aborts
authorMatthew Flaschen <mflaschen@wikimedia.org>
Wed, 6 Jul 2016 00:08:32 +0000 (20:08 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Wed, 6 Jul 2016 00:08:32 +0000 (20:08 -0400)
It was backwards.

Bug: T139433
Change-Id: Ie370da9d77e1d7608e2d5492f9d34094af233d0b

includes/diff/DifferenceEngine.php

index c5e94c5..deeb405 100644 (file)
@@ -638,7 +638,7 @@ class DifferenceEngine extends ContextSource {
                                # WikiPage::getParserOutput() should not return false, but just in case
                                if ( $parserOutput ) {
                                        // Allow extensions to change parser output here
-                                       if ( !Hooks::run( 'DifferenceEngineRenderRevisionAddParserOutput', [ $this, $out, $parserOutput, $wikiPage ] ) ) {
+                                       if ( Hooks::run( 'DifferenceEngineRenderRevisionAddParserOutput', [ $this, $out, $parserOutput, $wikiPage ] ) ) {
                                                $out->addParserOutput( $parserOutput );
                                        }
                                }