From 111a497a08fd76dc6fa32e947de63b7379fd2126 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 11 Oct 2022 08:07:02 +0200 Subject: refactor: extend UnlistedSpecialPage --- Vote.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Vote.php') 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(); -- cgit v1.2.3