mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
Fixed error because of global missing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user