// Something is seriously wrong
$errorCode = 'internal_api_error';
}
- $errorTitle = $this->msg( 'api-feed-error-title', $msg->getApiCode() );
+ $errorTitle = $this->msg( 'api-feed-error-title', $errorCode );
$errorText = $e->getMessage();
$feedItems[] = new FeedItem( $errorTitle, $errorText, '', '', '' );
}
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'];