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