mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
Fix 1
This commit is contained in:
@ -122,10 +122,10 @@
|
||||
'("' . implode( '", "',$wgLinkTitlesBlackList ) . '", "' .
|
||||
LinkTitles::$currentTitle->getDbKey() . '")' );
|
||||
|
||||
$currentNamespace = $title->getNamespace();
|
||||
$currentNamespace[] = $title->getNamespace();
|
||||
|
||||
// Build our weight list. Make sure current namespace is first element
|
||||
$namespaces = array_unshift( array($currentNamespace), array_diff($wgLinkTitlesNamespaces, array($currentNamespace)) );
|
||||
$namespaces = array_unshift( $currentNamespace, array_diff($wgLinkTitlesNamespaces, $currentNamespace) );
|
||||
|
||||
// No need for sanitiy check. we are sure that we have at least one element in the array
|
||||
$weightSelect = "CASE page_namespace ";
|
||||
|
Reference in New Issue
Block a user