Merge "Treat pages with __NEWSECTIONLINK__ as talk pages"

This commit is contained in:
jenkins-bot 2020-04-02 21:37:14 +00:00 committed by Gerrit Code Review
commit dd8eee7b38

View file

@ -66,9 +66,12 @@ class DiscussionToolsHooks {
// Query parameter to load on any wikitext page for testing
$req->getVal( 'dtenable' ) ||
// If configured, load on all talk pages
( $enabled && $title->isTalkPage() )
// TODO: Allow non talk pages to be treated as talk pages
// using a magic word.
( $enabled && (
$title->isTalkPage() ||
// Treat pages with __NEWSECTIONLINK__ as talk pages (T245890)
$output->showNewSectionLink()
// TODO: Consider not loading if forceHideNewSectionLink is true.
) )
)
) {
$output->addModules( [