mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Merge "Remove remnants of the cookie hack for loading unavailable tools"
This commit is contained in:
commit
ccd2769b17
|
@ -86,7 +86,6 @@
|
|||
"mediawiki.util",
|
||||
"mediawiki.storage",
|
||||
"mediawiki.String",
|
||||
"mediawiki.cookie",
|
||||
"ext.visualEditor.core.utils.parsing"
|
||||
],
|
||||
"messages": [
|
||||
|
|
|
@ -45,7 +45,7 @@ class CommentFormatter {
|
|||
|
||||
// Never add tools twice.
|
||||
// This is required because we try again to add tools to cached content
|
||||
// to support query string or cookie enabling
|
||||
// to support query string enabling.
|
||||
if ( strpos( $text, static::MARKER_COMMENT ) !== false ) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -145,7 +145,7 @@ class PageHooks implements
|
|||
public function onOutputPageBeforeHTML( $output, &$text ) {
|
||||
$lang = $output->getLanguage();
|
||||
// Check after the parser cache if tools need to be added for
|
||||
// non-cacheable reasons i.e. query string or cookie
|
||||
// non-cacheable reasons (i.e. query string).
|
||||
// The addDiscussionTools method is responsible for ensuring that
|
||||
// tools aren't added twice.
|
||||
foreach ( CommentFormatter::USE_WITH_FEATURES as $feature ) {
|
||||
|
|
Loading…
Reference in a new issue