Index: trunk/extensions/LiquidThreads/LiquidThreads.php |
— | — | @@ -35,10 +35,12 @@ |
36 | 36 | $wgExtraNamespaces[NS_LQT_SUMMARY] = 'Summary'; |
37 | 37 | $wgExtraNamespaces[NS_LQT_SUMMARY_TALK] = 'Summary_talk'; |
38 | 38 | |
| 39 | +// Localisation |
39 | 40 | $dir = dirname( __FILE__ ) . '/'; |
40 | 41 | $wgExtensionMessagesFiles['LiquidThreads'] = $dir . 'Lqt.i18n.php'; |
41 | 42 | $wgExtensionAliasesFiles['LiquidThreads'] = $dir . 'Lqt.alias.php'; |
42 | 43 | |
| 44 | +// Hooks |
43 | 45 | $wgHooks['SpecialWatchlistQuery'][] = 'wfLqtBeforeWatchlistHook'; |
44 | 46 | $wgHooks['MediaWikiPerformAction'][] = 'LqtDispatch::tryPage'; |
45 | 47 | $wgHooks['SpecialMovepageAfterMove'][] = 'LqtDispatch::onPageMove'; |
— | — | @@ -48,11 +50,13 @@ |
49 | 51 | $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'LqtDispatch::setNewtalkHTML'; |
50 | 52 | $wgHooks['TitleGetRestrictions'][] = 'Thread::getRestrictionsForTitle'; |
51 | 53 | |
| 54 | +// Special pages |
52 | 55 | $wgSpecialPages['DeleteThread'] = 'SpecialDeleteThread'; |
53 | 56 | $wgSpecialPages['MoveThread'] = 'SpecialMoveThread'; |
54 | 57 | $wgSpecialPages['NewMessages'] = 'SpecialNewMessages'; |
55 | 58 | $wgSpecialPageGroups['NewMessages'] = 'wiki'; |
56 | 59 | |
| 60 | +// Classes |
57 | 61 | $wgAutoloadClasses['LqtDispatch'] = $dir . 'classes/LqtDispatch.php'; |
58 | 62 | $wgAutoloadClasses['LqtView'] = $dir . 'classes/LqtView.php'; |
59 | 63 | $wgAutoloadClasses['Date'] = $dir . 'classes/LqtDate.php'; |
— | — | @@ -64,6 +68,7 @@ |
65 | 69 | $wgAutoloadClasses['QueryGroup'] = $dir . 'classes/LqtQueryGroup.php'; |
66 | 70 | $wgAutoloadClasses['NewMessages'] = $dir . 'classes/LqtNewMessages.php'; |
67 | 71 | |
| 72 | +// Page classes |
68 | 73 | $wgAutoloadClasses['TalkpageView'] = $dir . 'pages/TalkpageView.php'; |
69 | 74 | $wgAutoloadClasses['TalkpageArchiveView'] = $dir . 'pages/TalkpageArchiveView.php'; |
70 | 75 | $wgAutoloadClasses['ThreadPermalinkView'] = $dir . 'pages/ThreadPermalinkView.php'; |