Index: branches/wmf/1.17wmf1/extensions/LiquidThreads/LiquidThreads.php |
— | — | @@ -22,6 +22,7 @@ |
23 | 23 | define( 'LQT_OLDEST_THREADS', 'ot' ); |
24 | 24 | |
25 | 25 | $wgExtensionFunctions[] = 'wgLqtSetupCanonicalNamespces'; |
| 26 | +$wgHooks['CanonicalNamespaces'][] = 'LqtHooks::setupCanonicalNamespaces'; |
26 | 27 | |
27 | 28 | function wgLqtSetupCanonicalNamespces() { |
28 | 29 | global $wgCanonicalNamespaceNames; |
Index: branches/wmf/1.17wmf1/extensions/LiquidThreads/classes/Hooks.php |
— | — | @@ -768,4 +768,12 @@ |
769 | 769 | |
770 | 770 | $array[$title][] = $entry; |
771 | 771 | } |
| 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 | + } |
772 | 780 | } |