jenkins-bot has submitted this change and it was merged.

Change subject: Don't attempt to fix redlinks in topic titles
......................................................................


Don't attempt to fix redlinks in topic titles

Topic titles can only contain wikitext and not links, so don't
attempt to load them as html.

Change-Id: Id1e6a294b63330a45197fcba9c9d6a6e1e9a47b8
---
M includes/Templating.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Matthias Mullie: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Templating.php b/includes/Templating.php
index ba510b7..2c21acf 100644
--- a/includes/Templating.php
+++ b/includes/Templating.php
@@ -459,6 +459,10 @@
         * @return array Return array in the format of [result, continue]
         */
        public function registerParsoidLinksCallback( PostRevision $post, 
$result ) {
+               // topic titles don't contain html
+               if ( $post->isTopicTitle() ) {
+                       return array( array(), true );
+               }
                $content = $post->getContent( 'html' );
 
                // make sure a post is not checked more than once

-- 
To view, visit https://gerrit.wikimedia.org/r/98027
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id1e6a294b63330a45197fcba9c9d6a6e1e9a47b8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org>
Gerrit-Reviewer: Matthias Mullie <mmul...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to