Index: branches/querypage-work2/phase3/includes/specials/SpecialUnwatchedpages.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | class UnwatchedpagesPage extends QueryPage { |
18 | 18 | |
19 | 19 | function __construct() { |
20 | | - SpecialPage::__construct( 'Unwatchedpages' ); |
| 20 | + SpecialPage::__construct( 'Unwatchedpages', 'unwatchedpages' ); |
21 | 21 | } |
22 | 22 | |
23 | 23 | // inexpensive? |
— | — | @@ -64,4 +64,4 @@ |
65 | 65 | |
66 | 66 | return wfSpecialList( $plink, $wlink ); |
67 | 67 | } |
68 | | -} |
\ No newline at end of file |
| 68 | +} |
Index: branches/querypage-work2/phase3/includes/QueryPage.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | array( 'MostcategoriesPage', 'Mostcategories' ), |
30 | 30 | array( 'MostimagesPage', 'Mostimages' ), |
31 | 31 | array( 'MostlinkedCategoriesPage', 'Mostlinkedcategories' ), |
32 | | - array( 'SpecialMostlinkedtemplates', 'Mostlinkedtemplates' ), |
| 32 | + array( 'MostlinkedtemplatesPage', 'Mostlinkedtemplates' ), |
33 | 33 | array( 'MostlinkedPage', 'Mostlinked' ), |
34 | 34 | array( 'MostrevisionsPage', 'Mostrevisions' ), |
35 | 35 | array( 'FewestrevisionsPage', 'Fewestrevisions' ), |
— | — | @@ -388,6 +388,11 @@ |
389 | 389 | */ |
390 | 390 | function execute( $par ) { |
391 | 391 | global $wgUser, $wgOut, $wgLang; |
| 392 | + |
| 393 | + if ( !$this->userCanExecute( $wgUser ) ) { |
| 394 | + $this->displayRestrictionError(); |
| 395 | + return; |
| 396 | + } |
392 | 397 | |
393 | 398 | if( $this->limit == 0 && $this->offset == 0 ) |
394 | 399 | list( $this->limit, $this->offset ) = wfCheckLimits(); |
Index: branches/querypage-work2/phase3/includes/SpecialPage.php |
— | — | @@ -94,26 +94,26 @@ |
95 | 95 | 'Withoutinterwiki' => array( 'WithoutinterwikiPage' ), |
96 | 96 | 'Protectedpages' => array( 'SpecialPage', 'Protectedpages' ), |
97 | 97 | 'Protectedtitles' => array( 'SpecialPage', 'Protectedtitles' ), |
98 | | - 'Shortpages' => array( 'SpecialPage', 'Shortpages' ), |
99 | | - 'Uncategorizedcategories' => array( 'SpecialPage', 'Uncategorizedcategories' ), |
100 | | - 'Uncategorizedimages' => array( 'SpecialPage', 'Uncategorizedimages' ), |
101 | | - 'Uncategorizedpages' => array( 'SpecialPage', 'Uncategorizedpages' ), |
102 | | - 'Uncategorizedtemplates' => array( 'SpecialPage', 'Uncategorizedtemplates' ), |
103 | | - 'Unusedcategories' => array( 'SpecialPage', 'Unusedcategories' ), |
104 | | - 'Unusedimages' => array( 'SpecialPage', 'Unusedimages' ), |
105 | | - 'Unusedtemplates' => array( 'SpecialPage', 'Unusedtemplates' ), |
106 | | - 'Unwatchedpages' => array( 'SpecialPage', 'Unwatchedpages', 'unwatchedpages' ), |
107 | | - 'Wantedcategories' => array( 'SpecialPage', 'Wantedcategories' ), |
108 | | - 'Wantedfiles' => array( 'SpecialPage', 'Wantedfiles' ), |
109 | | - 'Wantedpages' => array( 'IncludableSpecialPage', 'Wantedpages' ), |
110 | | - 'Wantedtemplates' => array( 'SpecialPage', 'Wantedtemplates' ), |
| 98 | + 'Shortpages' => array( 'ShortpagesPage' ), |
| 99 | + 'Uncategorizedcategories' => array( 'UncategorizedcategoriesPage' ), |
| 100 | + 'Uncategorizedimages' => array( 'UncategorizedimagesPage' ), |
| 101 | + 'Uncategorizedpages' => array( 'UncategorizedpagesPage' ), |
| 102 | + 'Uncategorizedtemplates' => array( 'UncategorizedtemplatesPage' ), |
| 103 | + 'Unusedcategories' => array( 'UnusedcategoriesPage' ), |
| 104 | + 'Unusedimages' => array( 'UnusedimagesPage' ), |
| 105 | + 'Unusedtemplates' => array( 'UnusedtemplatesPage' ), |
| 106 | + 'Unwatchedpages' => array( 'UnwatchedpagesPage' ), |
| 107 | + 'Wantedcategories' => array( 'WantedcategoriesPage' ), |
| 108 | + 'Wantedfiles' => array( 'WantedfilesPage' ), |
| 109 | + 'Wantedpages' => array( 'WantedpagesPage' ), |
| 110 | + 'Wantedtemplates' => array( 'WantedtemplatesPage' ), |
111 | 111 | |
112 | 112 | # List of pages |
113 | 113 | 'Allpages' => 'SpecialAllpages', |
114 | 114 | 'Prefixindex' => 'SpecialPrefixindex', |
115 | 115 | 'Categories' => array( 'SpecialPage', 'Categories' ), |
116 | | - 'Disambiguations' => array( 'SpecialPage', 'Disambiguations' ), |
117 | | - 'Listredirects' => array( 'SpecialPage', 'Listredirects' ), |
| 116 | + 'Disambiguations' => array( 'DisambiguationsPage' ), |
| 117 | + 'Listredirects' => array( 'ListredirectsPage' ), |
118 | 118 | |
119 | 119 | # Login/create account |
120 | 120 | 'Userlogin' => array( 'SpecialPage', 'Userlogin' ), |
— | — | @@ -156,7 +156,7 @@ |
157 | 157 | 'Unlockdb' => array( 'SpecialPage', 'Unlockdb', 'siteadmin' ), |
158 | 158 | |
159 | 159 | # Redirecting special pages |
160 | | - 'LinkSearch' => array( 'SpecialPage', 'LinkSearch' ), |
| 160 | + 'LinkSearch' => array( 'LinkSearchPage' ), |
161 | 161 | 'Randompage' => 'Randompage', |
162 | 162 | 'Randomredirect' => 'SpecialRandomredirect', |
163 | 163 | |