https://bugzilla.wikimedia.org/show_bug.cgi?id=57651

--- Comment #2 from 11fallinglea...@gmail.com ---
Here is the git diff:

diff --git a/CategoryTree.php b/CategoryTree.php
index 5d0bbdf..24c1025 100644
--- a/CategoryTree.php
+++ b/CategoryTree.php
@@ -209,11 +209,7 @@ function efCategoryTree() {
         $wgCategoryTreeCategoryPageOptions['mode'] = ( $mode =
$wgRequest->getVal( 'mode' ) ) ? CategoryTree::decodeMode( $mode ) :
$wgCategoryTreeCategoryPageMode;
     }

-    if ( $wgCategoryTreeForceHeaders ) {
-        CategoryTree::setHeaders( $wgOut );
-    } else {
-        $wgHooks['OutputPageParserOutput'][] = 'efCategoryTreeParserOutput';
-    }
+    $wgHooks['OutputPageParserOutput'][] = 'efCategoryTreeParserOutput';

     $wgHooks['MakeGlobalVariablesScript'][] = 'efCategoryTreeGetConfigVars';
 }
@@ -383,7 +379,8 @@ function efCategoryTreeParserHook( $cat, $argv, $parser =
null, $allowMissing =
  * @return bool
  */
 function efCategoryTreeParserOutput( $outputPage, $parserOutput )  {
-    if ( !empty( $parserOutput->mCategoryTreeTag ) ) {
+    global $wgCategoryTreeForceHeaders;
+    if ( $wgCategoryTreeForceHeaders || !empty(
$parserOutput->mCategoryTreeTag ) ) {
         CategoryTree::setHeaders( $outputPage );
     }
     return true;

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to