Index: trunk/extensions/Wikidata/OmegaWiki/SpecialDatasearch.php |
— | — | @@ -3,6 +3,7 @@ |
4 | 4 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
5 | 5 | |
6 | 6 | $wgExtensionFunctions[] = 'wfSpecialDatasearch'; |
| 7 | +$wgSpecialPages[] = 'SpecialDatasearch'; |
7 | 8 | |
8 | 9 | require_once( "Wikidata.php" ); |
9 | 10 | require_once( "WikiDataGlobals.php" ); |
— | — | @@ -360,6 +361,4 @@ |
361 | 362 | return $editor; |
362 | 363 | } |
363 | 364 | } |
364 | | - |
365 | | - SpecialPage::addPage( new SpecialDatasearch() ); |
366 | 365 | } |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialImportLangNames.php |
— | — | @@ -6,6 +6,9 @@ |
7 | 7 | $wgAvailableRights[] = 'languagenames'; |
8 | 8 | |
9 | 9 | $wgExtensionFunctions[] = 'wfSpecialImportLangNames'; |
| 10 | + |
| 11 | + $wgSpecialPages[] = 'SpecialImportLangNames'; |
| 12 | + |
10 | 13 | function wfSpecialImportLangNames() { |
11 | 14 | class SpecialImportLangNames extends SpecialPage { |
12 | 15 | function SpecialImportLangNames() { |
— | — | @@ -157,7 +160,5 @@ |
158 | 161 | } |
159 | 162 | |
160 | 163 | } |
161 | | - |
162 | | - SpecialPage::addPage( new SpecialImportLangNames ); |
163 | 164 | } |
164 | 165 | |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialAddCollection.php |
— | — | @@ -7,6 +7,7 @@ |
8 | 8 | $wgAvailableRights[] = 'addcollection'; |
9 | 9 | $wgGroupPermissions['bureaucrat']['addcollection'] = true; |
10 | 10 | $wgExtensionFunctions[] = 'wfSpecialAddCollection'; |
| 11 | + $wgSpecialPages[] = 'SpecialAddCollection'; |
11 | 12 | |
12 | 13 | function wfSpecialAddCollection() { |
13 | 14 | class SpecialAddCollection extends SpecialPage { |
— | — | @@ -54,7 +55,5 @@ |
55 | 56 | ) ); |
56 | 57 | } |
57 | 58 | } |
58 | | - |
59 | | - SpecialPage::addPage( new SpecialAddCollection ); |
60 | 59 | } |
61 | 60 | |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialNeedsTranslation.php |
— | — | @@ -3,6 +3,8 @@ |
4 | 4 | |
5 | 5 | $wgExtensionFunctions[] = 'wfSpecialNeedsTranslation'; |
6 | 6 | |
| 7 | + $wgSpecialPages[] = 'SpecialNeedsTranslation'; |
| 8 | + |
7 | 9 | require_once( "Wikidata.php" ); |
8 | 10 | |
9 | 11 | function wfSpecialNeedsTranslation() { |
— | — | @@ -149,8 +151,6 @@ |
150 | 152 | $wgOut->addHTML( $editor->view( new IdStack( "expression" ), $recordSet ) ); |
151 | 153 | } |
152 | 154 | } |
153 | | - |
154 | | - SpecialPage::addPage( new SpecialNeedsTranslation ); |
155 | 155 | } |
156 | 156 | |
157 | 157 | |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialExportTSV.php |
— | — | @@ -8,6 +8,8 @@ |
9 | 9 | $wgAvailableRights[] = 'exporttsv'; |
10 | 10 | $wgExtensionFunctions[] = 'wfSpecialExportTSV'; |
11 | 11 | |
| 12 | + $wgSpecialPages[] = 'SpecialExportTSV'; |
| 13 | + |
12 | 14 | function wfSpecialExportTSV() { |
13 | 15 | class SpecialExportTSV extends SpecialPage { |
14 | 16 | |
— | — | @@ -266,7 +268,5 @@ |
267 | 269 | return $fileName; |
268 | 270 | } |
269 | 271 | } |
270 | | - |
271 | | - SpecialPage::addPage( new SpecialExportTSV ); |
272 | 272 | } |
273 | 273 | |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSelect.php |
— | — | @@ -6,6 +6,7 @@ |
7 | 7 | require_once( "Wikidata.php" ); |
8 | 8 | require_once( "WikiDataGlobals.php" ); |
9 | 9 | |
| 10 | +$wgSpecialPages[] = 'SpecialSelect'; |
10 | 11 | |
11 | 12 | function wfSpecialSelect() { |
12 | 13 | class SpecialSelect extends SpecialPage { |
— | — | @@ -24,8 +25,6 @@ |
25 | 26 | echo getSelectOptions(); |
26 | 27 | } |
27 | 28 | } |
28 | | - |
29 | | - SpecialPage::addPage( new SpecialSelect() ); |
30 | 29 | } |
31 | 30 | |
32 | 31 | function getSelectOptions() { |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php |
— | — | @@ -4,6 +4,8 @@ |
5 | 5 | |
6 | 6 | |
7 | 7 | $wgExtensionFunctions[] = 'wfSpecialSuggest'; |
| 8 | +$wgSpecialPages[] = 'SpecialSuggest'; |
| 9 | + |
8 | 10 | function wfSpecialSuggest() { |
9 | 11 | class SpecialSuggest extends SpecialPage { |
10 | 12 | function SpecialSuggest() { |
— | — | @@ -32,8 +34,6 @@ |
33 | 35 | echo getSuggestions(); |
34 | 36 | } |
35 | 37 | } |
36 | | - |
37 | | - SpecialPage::addPage( new SpecialSuggest() ); |
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialTransaction.php |
— | — | @@ -3,6 +3,8 @@ |
4 | 4 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
5 | 5 | |
6 | 6 | $wgExtensionFunctions[] = 'wfSpecialTransaction'; |
| 7 | +$wgSpecialPages[] = 'SpecialTransaction'; |
| 8 | + |
7 | 9 | require_once( "Wikidata.php" ); |
8 | 10 | require_once( "Utilities.php" ); |
9 | 11 | |
— | — | @@ -90,8 +92,6 @@ |
91 | 93 | $wgOut->addHTML( "<script language='javascript'>/* <![CDATA[ */\nexpandEditors();\n/* ]]> */</script>" ); |
92 | 94 | } |
93 | 95 | } |
94 | | - |
95 | | - SpecialPage::addPage( new SpecialTransaction() ); |
96 | 96 | } |
97 | 97 | |
98 | 98 | function getFilterOptionsPanel( $fromTransactionId, $transactionCount, $userName, $showRollBackOptions ) { |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialOWStatistics.php |
— | — | @@ -3,6 +3,8 @@ |
4 | 4 | |
5 | 5 | $wgExtensionFunctions[] = 'wfSpecialOWStatistics'; |
6 | 6 | |
| 7 | + $wgSpecialPages[] = 'SpecialOWStatistics'; |
| 8 | + |
7 | 9 | require_once( "Wikidata.php" ); |
8 | 10 | require_once( 'languages.php' ); |
9 | 11 | |
— | — | @@ -255,6 +257,4 @@ |
256 | 258 | } |
257 | 259 | |
258 | 260 | } |
259 | | - SpecialPage::addPage( new SpecialOWStatistics ); |
260 | | - |
261 | 261 | } |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialImportTSV.php |
— | — | @@ -8,6 +8,8 @@ |
9 | 9 | $wgAvailableRights[] = 'importtsv'; |
10 | 10 | $wgExtensionFunctions[] = 'wfSpecialImportTSV'; |
11 | 11 | |
| 12 | + $wgSpecialPages[] = 'SpecialImportTSV'; |
| 13 | + |
12 | 14 | function wfSpecialImportTSV() { |
13 | 15 | class SpecialImportTSV extends SpecialPage { |
14 | 16 | |
— | — | @@ -239,7 +241,5 @@ |
240 | 242 | } |
241 | 243 | |
242 | 244 | } |
243 | | - |
244 | | - SpecialPage::addPage( new SpecialImportTSV ); |
245 | 245 | } |
246 | 246 | |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialConceptMapping.php |
— | — | @@ -18,6 +18,8 @@ |
19 | 19 | 'author' => 'Kim Bruning', |
20 | 20 | ); |
21 | 21 | |
| 22 | +$wgSpecialPages[] = 'SpecialConceptMapping'; |
| 23 | + |
22 | 24 | function wfSpecialConceptMapping() { |
23 | 25 | require_once( "Wikidata.php" ); |
24 | 26 | require_once( "WikiDataAPI.php" ); |
— | — | @@ -198,8 +200,5 @@ |
199 | 201 | } |
200 | 202 | |
201 | 203 | } |
202 | | - |
203 | | - SpecialPage::addPage( new SpecialConceptMapping ); |
204 | | - |
205 | 204 | } |
206 | 205 | |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialCopy.php |
— | — | @@ -23,6 +23,8 @@ |
24 | 24 | 'author' => 'Alan Smithee', |
25 | 25 | ); |
26 | 26 | |
| 27 | +$wgSpecialPages[] = 'SpecialCopy'; |
| 28 | + |
27 | 29 | function wfSpecialCopy() { |
28 | 30 | require_once( "Wikidata.php" ); |
29 | 31 | require_once( "WikiDataAPI.php" ); |
— | — | @@ -170,7 +172,5 @@ |
171 | 173 | |
172 | 174 | } |
173 | 175 | } |
174 | | - SpecialPage::addPage( new SpecialCopy ); |
175 | | - |
176 | 176 | } |
177 | 177 | |