[Bug 57651] JavaScript is not loaded with the 'rebuildFileCache.php' maintenance script
https://bugzilla.wikimedia.org/show_bug.cgi?id=57651 --- Comment #7 from Gerrit Notification Bot gerritad...@wikimedia.org --- Change 99649 merged by jenkins-bot: Use hooks instead of $wgOut when $wgCategoryTreeForceHeaders is set https://gerrit.wikimedia.org/r/99649 -- 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
[Bug 57651] JavaScript is not loaded with the 'rebuildFileCache.php' maintenance script
https://bugzilla.wikimedia.org/show_bug.cgi?id=57651 Bawolff (Brian Wolff) bawolff...@gmail.com changed: What|Removed |Added Status|PATCH_TO_REVIEW |RESOLVED CC||bawolff...@gmail.com Resolution|--- |FIXED --- Comment #8 from Bawolff (Brian Wolff) bawolff...@gmail.com --- There's a lot of other things very very outdated in the way CategoryTree handles js that could also use with fixing. Anyways, patch merged, marking bug as fixed. -- 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
[Bug 57651] JavaScript is not loaded with the 'rebuildFileCache.php' maintenance script
https://bugzilla.wikimedia.org/show_bug.cgi?id=57651 --- Comment #6 from Gerrit Notification Bot gerritad...@wikimedia.org --- Change 99649 had a related patch set uploaded by Leaves in Motion: Use hooks instead of $wgOut when $wgCategoryTreeForceHeaders is set https://gerrit.wikimedia.org/r/99649 -- 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
[Bug 57651] JavaScript is not loaded with the 'rebuildFileCache.php' maintenance script
https://bugzilla.wikimedia.org/show_bug.cgi?id=57651 Andre Klapper aklap...@wikimedia.org changed: What|Removed |Added Status|UNCONFIRMED |PATCH_TO_REVIEW Ever confirmed|0 |1 --- Comment #4 from Andre Klapper aklap...@wikimedia.org --- Thanks! Setting PATCH_TO_REVIEW status (though patch needs rework) -- 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
[Bug 57651] JavaScript is not loaded with the 'rebuildFileCache.php' maintenance script
https://bugzilla.wikimedia.org/show_bug.cgi?id=57651 --- Comment #5 from 11fallinglea...@gmail.com --- Wait - don't merge this patch. It's broken. I realized this patch does not work on pages that are not parsed pages, like Special:Preferences. (Strangely, it does work on Special:RecentChanges, I suppose there's some parsing going on there.) So, it needs a different hook that's called on *every* page, not just parsed pages. -- 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
[Bug 57651] JavaScript is not loaded with the 'rebuildFileCache.php' maintenance script
https://bugzilla.wikimedia.org/show_bug.cgi?id=57651 --- Comment #3 from 11fallinglea...@gmail.com --- I uploaded the patch: https://gerrit.wikimedia.org/r/#/c/99649/ I believe this should fix most of it, maybe all, but $wgOut is used in a few other places. I think that part is in need of a refactor / small rewrite. I do not have enough familiarity with CategoryTree to do that in a good way. -- 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
[Bug 57651] JavaScript is not loaded with the 'rebuildFileCache.php' maintenance script
https://bugzilla.wikimedia.org/show_bug.cgi?id=57651 Andre Klapper aklap...@wikimedia.org changed: What|Removed |Added Priority|Unprioritized |High CC||aklap...@wikimedia.org --- Comment #1 from Andre Klapper aklap...@wikimedia.org --- Thanks for taking the time to report this! (In reply to comment #0) I can post the changes if needed, but they only really fix half of the problem. I guess it could still be welcome as a starter. -- 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
[Bug 57651] JavaScript is not loaded with the 'rebuildFileCache.php' maintenance script
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