From 1c6692d9d0ce753d0f553b60fbe448fe5099dc5d Mon Sep 17 00:00:00 2001 From: c0nnex Date: Wed, 30 Sep 2015 02:00:03 +0200 Subject: [PATCH] Fix 1 --- LinkTitles.body.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index 0e7dd4c..f7d77d0 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -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 ";