This commit is contained in:
c0nnex
2015-09-30 02:00:03 +02:00
parent 1e155be6c6
commit 1c6692d9d0

View File

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