mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +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.
|
/// This function performs the actual parsing of the content.
|
||||||
static function parseContent( &$article, &$text ) {
|
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.
|
// Configuration variables need to be defined here as globals.
|
||||||
global $wgLinkTitlesPreferShortTitles;
|
global $wgLinkTitlesPreferShortTitles;
|
||||||
global $wgLinkTitlesMinimumTitleLength;
|
global $wgLinkTitlesMinimumTitleLength;
|
||||||
|
Reference in New Issue
Block a user