r83274 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83273‎ | r83274 | r83275 >
Date:03:57, 5 March 2011
Author:werdna
Status:ok
Tags:
Comment:
Commit live hack that seems to fix LQT namespaces on svwikisource and others
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/LiquidThreads/LiquidThreads.php (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/LiquidThreads/classes/Hooks.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/LiquidThreads/LiquidThreads.php
@@ -22,6 +22,7 @@
2323 define( 'LQT_OLDEST_THREADS', 'ot' );
2424
2525 $wgExtensionFunctions[] = 'wgLqtSetupCanonicalNamespces';
 26+$wgHooks['CanonicalNamespaces'][] = 'LqtHooks::setupCanonicalNamespaces';
2627
2728 function wgLqtSetupCanonicalNamespces() {
2829 global $wgCanonicalNamespaceNames;
Index: branches/wmf/1.17wmf1/extensions/LiquidThreads/classes/Hooks.php
@@ -768,4 +768,12 @@
769769
770770 $array[$title][] = $entry;
771771 }
 772+
 773+ public static function setupCanonicalNamespaces( &$namespaces ) {
 774+ $namespaces[NS_LQT_THREAD] = 'Thread';
 775+ $namespaces[NS_LQT_THREAD_TALK] = 'Thread_talk';
 776+ $namespaces[NS_LQT_SUMMARY] = 'Summary';
 777+ $namespaces[NS_LQT_SUMMARY_TALK] = 'Summary_talk';
 778+ return true;
 779+ }
772780 }

Status & tagging log