summaryrefslogtreecommitdiff
path: root/Vote.php
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-10-11 08:07:02 +0200
committerMartin Fischer <martin@push-f.com>2022-10-11 08:07:02 +0200
commit111a497a08fd76dc6fa32e947de63b7379fd2126 (patch)
tree4fe206651ecb72ebec43eb4b16394d9ce98030a8 /Vote.php
parent166d0fbe2f0355d81669b5fde9c2a9bc576da88a (diff)
refactor: extend UnlistedSpecialPage
Diffstat (limited to 'Vote.php')
-rw-r--r--Vote.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/Vote.php b/Vote.php
index cbb1c62..09f86b0 100644
--- a/Vote.php
+++ b/Vote.php
@@ -239,17 +239,11 @@ class VoteHooks {
}
// We need a special page to receive the submitted votes.
-class SpecialInsertVote extends SpecialPage {
+class SpecialInsertVote extends UnlistedSpecialPage {
function __construct() {
parent::__construct( 'InsertVote' );
}
- function isListed() {
- // prevent this page from being listed on Special:SpecialPages
- // since it's not intended to be accessed directly
- return false;
- }
-
function execute( $par ) {
$request = $this->getRequest();
$output = $this->getOutput();