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