Fixed error because of global missing

This commit is contained in:
c0nnex
2015-10-09 17:22:30 +02:00
parent dca10de21f
commit 085a4032f0

View File

@ -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