mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Add preliminary support for __NOAUTOLINKS__ magic word.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user