From b18350efddb45c0ea06cf52503ff3f04df6e275a Mon Sep 17 00:00:00 2001 From: c0nnex Date: Wed, 30 Sep 2015 02:25:05 +0200 Subject: [PATCH] Fix 7 --- LinkTitles.body.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index 65e9905..d230b73 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -128,8 +128,9 @@ // Build our weight list. Make sure current namespace is first element $namespaces = array_diff($wgLinkTitlesNamespaces, $currentNamespace); - array_unshift($namespaces, $currentNamespace ); + array_unshift($namespaces, $currentNamespace[0] ); wfDebugLog("LinkTitles",'$namespaces = '. print_r($namespaces,true)); + // No need for sanitiy check. we are sure that we have at least one element in the array $weightSelect = "CASE page_namespace "; $currentWeight = 0;