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 | * @deprecated |
4 | * |
5 | * Remove once we can be certain we're not breaking any ancient, cached JS. |
6 | */ |
7 | class SpecialBannerRandom extends SpecialBannerLoader { |
8 | public function __construct() { |
9 | // Register special page |
10 | UnlistedSpecialPage::__construct( "BannerRandom" ); |
11 | } |
12 | |
13 | /** |
14 | * This endpoint is deprecated. |
15 | * @param string|null $par |
16 | */ |
17 | public function execute( $par ) { |
18 | $this->getOutput()->disable(); |
19 | $this->getRequest()->response()->header( |
20 | 'HTTP/1.1 410 ' . HttpStatus::getMessage( 410 ) ); |
21 | } |
22 | } |