diff options
author | Martin Fischer <martin@push-f.com> | 2022-10-11 08:07:02 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-10-11 08:07:02 +0200 |
commit | 111a497a08fd76dc6fa32e947de63b7379fd2126 (patch) | |
tree | 4fe206651ecb72ebec43eb4b16394d9ce98030a8 /Vote.php | |
parent | 166d0fbe2f0355d81669b5fde9c2a9bc576da88a (diff) |
refactor: extend UnlistedSpecialPage
Diffstat (limited to 'Vote.php')
-rw-r--r-- | Vote.php | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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(); |