From 085a4032f07ef9200370e7561b5b22b4c05e287c Mon Sep 17 00:00:00 2001 From: c0nnex Date: Fri, 9 Oct 2015 17:22:30 +0200 Subject: [PATCH] Fixed error because of global missing --- LinkTitles.body.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index f448f4f..23a9084 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -76,7 +76,7 @@ /// Event handler that is hooked to the PageContentSave event. public static function onPageContentSave( &$wikiPage, &$user, &$content, &$summary, $isMinor, $isWatch, $section, &$flags, &$status ) { - + global $wgLinkTitlesNamespaces; if ( ! $isMinor ) { $title = $wikiPage->getTitle(); @@ -98,6 +98,7 @@ /// @param Parser $parser Parser that raised the event. /// @param $text Preprocessed text of the page. public static function onInternalParseBeforeLinks( Parser &$parser, &$text ) { + global $wgLinkTitlesNamespaces; $title = $parser->getTitle(); // Only process if page is in one of our namespaces we want to link