From bed28dd61cf949b96a8406f9227e81cd8490d455 Mon Sep 17 00:00:00 2001 From: c0nnex Date: Wed, 30 Sep 2015 02:15:26 +0200 Subject: [PATCH] Fix 3 --- LinkTitles.body.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index 19ebb8c..5e602ce 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -123,10 +123,11 @@ LinkTitles::$currentTitle->getDbKey() . '")' ); $currentNamespace[] = $title->getNamespace(); - + wfDebugLog("LinkTitles","$wgLinkTitlesNamespaces = ". print_r($wgLinkTitlesNamespaces,true)); + wfDebugLog("LinkTitles","$currentNamespace = ". print_r($currentNamespace,true)); // Build our weight list. Make sure current namespace is first element $namespaces = array_unshift(array_diff($wgLinkTitlesNamespaces, $currentNamespace), $currentNamespace ); - + 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;