From: jenkins-bot Date: Fri, 8 Dec 2017 18:50:35 +0000 (+0000) Subject: Merge "ApiFeedWatchlist: Use guessSectionNameFromWikiText()" X-Git-Tag: 1.31.0-rc.0~1242 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=565558f4ef6762df13613d3ef03804b39423cf2e;hp=39f80e69909e0a53d9956f9b0b89aa2d58cde3c3;p=lhc%2Fweb%2Fwiklou.git Merge "ApiFeedWatchlist: Use guessSectionNameFromWikiText()" --- diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index e3a757f79a..db150323f9 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -215,10 +215,7 @@ class ApiFeedWatchlist extends ApiBase { preg_match( '!(.*)/\*\s*(.*?)\s*\*/(.*)!', $comment, $matches ) ) { global $wgParser; - - $sectionTitle = $wgParser->stripSectionName( $matches[2] ); - $sectionTitle = Sanitizer::normalizeSectionNameWhitespace( $sectionTitle ); - $titleUrl .= Title::newFromText( '#' . $sectionTitle )->getFragmentForURL(); + $titleUrl .= $wgParser->guessSectionNameFromWikiText( $matches[ 2 ] ); } $timestamp = $info['timestamp'];