From c75fe391ce24f2cc42be0f978a5a5d07613131d2 Mon Sep 17 00:00:00 2001 From: c0nnex Date: Wed, 30 Sep 2015 02:28:01 +0200 Subject: [PATCH] Made debug logging private (explicit turn on). Final --- LinkTitles.body.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index d230b73..20b6f5c 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -123,13 +123,13 @@ LinkTitles::$currentTitle->getDbKey() . '")' ); $currentNamespace[] = $title->getNamespace(); - wfDebugLog("LinkTitles",'$wgLinkTitlesNamespaces = '. print_r($wgLinkTitlesNamespaces,true)); - wfDebugLog("LinkTitles",'$currentNamespace = '. print_r($currentNamespace,true)); + wfDebugLog("LinkTitles",'$wgLinkTitlesNamespaces = '. print_r($wgLinkTitlesNamespaces,true),'private'); + wfDebugLog("LinkTitles",'$currentNamespace = '. print_r($currentNamespace,true),'private'); // Build our weight list. Make sure current namespace is first element $namespaces = array_diff($wgLinkTitlesNamespaces, $currentNamespace); array_unshift($namespaces, $currentNamespace[0] ); - wfDebugLog("LinkTitles",'$namespaces = '. print_r($namespaces,true)); + wfDebugLog("LinkTitles",'$namespaces = '. print_r($namespaces,true),'private'); // No need for sanitiy check. we are sure that we have at least one element in the array $weightSelect = "CASE page_namespace "; @@ -140,8 +140,7 @@ } $weightSelect = $weightSelect . " END "; - $namespacesClause = str_replace( '_', ' ', - '(' . implode( ', ',$namespaces ) . ')' ); + $namespacesClause = str_replace( '_', ' ','(' . implode( ', ',$namespaces ) . ')' ); // Build an SQL query and fetch all page titles ordered by length from // shortest to longest. Only titles from 'normal' pages (namespace uid