mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
Made debug logging private (explicit turn on). Final
This commit is contained in:
@ -123,13 +123,13 @@
|
|||||||
LinkTitles::$currentTitle->getDbKey() . '")' );
|
LinkTitles::$currentTitle->getDbKey() . '")' );
|
||||||
|
|
||||||
$currentNamespace[] = $title->getNamespace();
|
$currentNamespace[] = $title->getNamespace();
|
||||||
wfDebugLog("LinkTitles",'$wgLinkTitlesNamespaces = '. print_r($wgLinkTitlesNamespaces,true));
|
wfDebugLog("LinkTitles",'$wgLinkTitlesNamespaces = '. print_r($wgLinkTitlesNamespaces,true),'private');
|
||||||
wfDebugLog("LinkTitles",'$currentNamespace = '. print_r($currentNamespace,true));
|
wfDebugLog("LinkTitles",'$currentNamespace = '. print_r($currentNamespace,true),'private');
|
||||||
|
|
||||||
// Build our weight list. Make sure current namespace is first element
|
// Build our weight list. Make sure current namespace is first element
|
||||||
$namespaces = array_diff($wgLinkTitlesNamespaces, $currentNamespace);
|
$namespaces = array_diff($wgLinkTitlesNamespaces, $currentNamespace);
|
||||||
array_unshift($namespaces, $currentNamespace[0] );
|
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
|
// 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 ";
|
||||||
@ -140,8 +140,7 @@
|
|||||||
}
|
}
|
||||||
$weightSelect = $weightSelect . " END ";
|
$weightSelect = $weightSelect . " END ";
|
||||||
|
|
||||||
$namespacesClause = str_replace( '_', ' ',
|
$namespacesClause = str_replace( '_', ' ','(' . implode( ', ',$namespaces ) . ')' );
|
||||||
'(' . implode( ', ',$namespaces ) . ')' );
|
|
||||||
|
|
||||||
// Build an SQL query and fetch all page titles ordered by length from
|
// Build an SQL query and fetch all page titles ordered by length from
|
||||||
// shortest to longest. Only titles from 'normal' pages (namespace uid
|
// shortest to longest. Only titles from 'normal' pages (namespace uid
|
||||||
|
Reference in New Issue
Block a user