wiki.techinc.nl/includes/specials/SpecialRandomRedirect.php
Fomafix 12f9cba673 Rename PHP class RandomPage to SpecialRandomPage
This change is for consistency to the file name and to other classes.

The old class name RandomPage is kept as alias for compatibility and is
now deprecated.

Also change the letter case in the class names and file names:
* SpecialRandompage     -> SpecialRandomPage
* SpecialRandomredirect -> SpecialRandomRedirect
* SpecialRandomrootpage -> SpecialRandomRootPage

The change of the letter case of file names may cause problems on
Windows operating systems.

Change-Id: If4dd23126e0d032f42a86aff7d09414edcb1ade2
2021-09-03 09:26:06 -07:00

46 lines
1.4 KiB
PHP

<?php
/**
* Implements Special:Randomredirect
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* @ingroup SpecialPage
* @author Rob Church <robchur@gmail.com>, Ilmari Karonen
*/
use Wikimedia\Rdbms\ILoadBalancer;
/**
* Special page to direct the user to a random redirect page (minus the second redirect)
*
* @ingroup SpecialPage
*/
class SpecialRandomRedirect extends SpecialRandomPage {
/**
* @param ILoadBalancer $loadBalancer
* @param NamespaceInfo $nsInfo
*/
public function __construct(
ILoadBalancer $loadBalancer,
NamespaceInfo $nsInfo
) {
parent::__construct( $loadBalancer, $nsInfo );
$this->mName = 'Randomredirect';
$this->isRedir = true;
}
}