Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| SpecialBannerRandom | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| execute | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | use MediaWiki\SpecialPage\UnlistedSpecialPage; |
| 4 | use Wikimedia\Http\HttpStatus; |
| 5 | |
| 6 | /** |
| 7 | * @deprecated |
| 8 | * |
| 9 | * Remove once we can be certain we're not breaking any ancient, cached JS. |
| 10 | */ |
| 11 | class SpecialBannerRandom extends SpecialBannerLoader { |
| 12 | public function __construct() { |
| 13 | // Register special page |
| 14 | UnlistedSpecialPage::__construct( "BannerRandom" ); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * This endpoint is deprecated. |
| 19 | * @param string|null $par |
| 20 | */ |
| 21 | public function execute( $par ) { |
| 22 | $this->getOutput()->disable(); |
| 23 | $this->getRequest()->response()->header( |
| 24 | 'HTTP/1.1 410 ' . HttpStatus::getMessage( 410 ) ); |
| 25 | } |
| 26 | } |