X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFeedWatchlist.php;h=393e53622788d9ed029ed0821f9f7553ef2c4b5c;hb=9008bdffddb30b7b08611a276652e4ec4a295344;hp=e3a757f79a5c55441c833ef21f91b88801c40955;hpb=059fdf444ebc254fe703d36c98397164b5dbd533;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index e3a757f79a..393e536227 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -215,10 +211,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'];