Add preliminary support for __NOAUTOLINKS__ magic word.

This commit is contained in:
Daniel Kraus
2013-02-20 21:47:23 +01:00
parent 05d77684c2
commit a6544b37d9

View File

@ -73,6 +73,12 @@
/// This function performs the actual parsing of the content.
static function parseContent( &$article, &$text ) {
// If the page contains the magic word '__NOAUTOLINKS__', do not parse
// the content.
if ( strpos( $text, '__NOAUTOLINKS__' ) !== false ) {
return true;
}
// Configuration variables need to be defined here as globals.
global $wgLinkTitlesPreferShortTitles;
global $wgLinkTitlesMinimumTitleLength;