Index: trunk/extensions/PovWatch/PovWatch.php |
— | — | @@ -1,5 +1,4 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | if ( !defined( 'MEDIAWIKI' ) ): |
5 | 4 | ?> |
6 | 5 | <html> |
— | — | @@ -40,9 +39,8 @@ |
41 | 40 | # 'povwatch_subscriber_list' => true, |
42 | 41 | ); |
43 | 42 | |
44 | | -if ( !function_exists( 'extAddSpecialPage' ) ) { |
45 | | - require( dirname(__FILE__) . '/../ExtensionFunctions.php' ); |
46 | | -} |
47 | | -extAddSpecialPage( dirname(__FILE__) . '/PovWatch_body.php', 'PovWatch', 'PovWatchPage' ); |
48 | 43 | $dir = dirname(__FILE__) . '/'; |
49 | | -$wgExtensionMessagesFiles['povwatch'] = $dir . 'PovWatch.i18n.php'; |
| 44 | +$wgExtensionMessagesFiles['PovWatch'] = $dir . 'PovWatch.i18n.php'; |
| 45 | +$wgExtensionAliasesFiles['PovWatch'] = $dir . 'PovWatch.alias.php'; |
| 46 | +$wgAutoloadClasses['SpecialPovWatch'] = $dir . 'PovWatch_body.php'; |
| 47 | +$wgSpecialPages['PovWatch'] = 'SpecialPovWatch'; |
Index: trunk/extensions/PovWatch/PovWatch.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'PovWatch' => array( 'PovWatch' ), |
| 12 | +); |
Property changes on: trunk/extensions/PovWatch/PovWatch.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/PovWatch/PovWatch_body.php |
— | — | @@ -1,26 +1,7 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ): |
4 | | -?> |
5 | | -<html> |
6 | | -<head><title>PovWatch Version 1.0</title></head> |
7 | | -<body> |
8 | | -<h1>PovWatch Version 1.0</h1> |
9 | | -<p> |
10 | | -This is a MediaWiki extension for pushing articles on to the watchlists of other users. |
11 | | -To install it, add the following to the bottom of your <tt>LocalSettings.php</tt>, |
12 | | -before the "?>":</p> |
13 | | -<pre> |
14 | | -require_once( "$IP/extensions/PovWatch/PovWatch.php" ); |
15 | | -</pre> |
16 | | -</body> |
17 | | -</html> |
18 | | -<?php |
19 | | - exit(1); |
20 | | -endif; |
| 3 | +if (!defined('MEDIAWIKI')) die(); |
21 | 4 | |
22 | | - wfLoadExtensionMessages( 'povwatch' ); |
23 | | - |
24 | | -class PovWatchPage extends SpecialPage { |
| 5 | +class SpecialPovWatch extends SpecialPage { |
25 | 6 | public $mPosted, $mTitleText, $mSubscribe, $mUnsubscribe, $mPush; |
26 | 7 | public $mComment, $mToken, $mOut; |
27 | 8 | |
— | — | @@ -35,6 +16,8 @@ |
36 | 17 | function execute( $subpage ) { |
37 | 18 | global $wgRequest, $wgUser, $wgOut; |
38 | 19 | |
| 20 | + wfLoadExtensionMessages( 'PovWatch' ); |
| 21 | + |
39 | 22 | $this->setHeaders(); |
40 | 23 | |
41 | 24 | if ( !$wgUser->isAllowed( 'povwatch_user' ) ) { |
Index: trunk/extensions/Translate/aliases.txt |
— | — | @@ -85,6 +85,9 @@ |
86 | 86 | Import users |
87 | 87 | file = ImportUsers/SpecialImportUsers.alias.php |
88 | 88 | |
| 89 | +Inspect cache |
| 90 | +file = InspectCache/InspectCache.alias.php |
| 91 | + |
89 | 92 | Interwiki |
90 | 93 | file = Interwiki/SpecialInterwiki.alias.php |
91 | 94 | |
— | — | @@ -115,6 +118,9 @@ |
116 | 119 | Oversight |
117 | 120 | file = Oversight/HideRevision.alias.php |
118 | 121 | |
| 122 | +POV watch |
| 123 | +file = PovWatch/PovWatch.alias.php |
| 124 | + |
119 | 125 | Rename user |
120 | 126 | file = Renameuser/SpecialRenameuser.alias.php |
121 | 127 | |