mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
Fix 4
This commit is contained in:
@ -123,11 +123,11 @@
|
|||||||
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));
|
||||||
wfDebugLog("LinkTitles","$currentNamespace = ". print_r($currentNamespace,true));
|
wfDebugLog("LinkTitles",'$currentNamespace = '. print_r($currentNamespace,true));
|
||||||
// Build our weight list. Make sure current namespace is first element
|
// Build our weight list. Make sure current namespace is first element
|
||||||
$namespaces = array_unshift(array_diff($wgLinkTitlesNamespaces, $currentNamespace), $currentNamespace );
|
$namespaces = array_unshift(array_diff($wgLinkTitlesNamespaces, $currentNamespace), $currentNamespace );
|
||||||
wfDebugLog("LinkTitles","$namespaces = ". print_r($namespaces,true));
|
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
|
// 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 ";
|
||||||
$currentWeight = 0;
|
$currentWeight = 0;
|
||||||
|
Reference in New Issue
Block a user