MediaWiki master
SpecialBlankpage.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Specials;
25
27
35 public function __construct() {
36 parent::__construct( 'Blankpage' );
37 }
38
39 public function execute( $par ) {
40 $this->setHeaders();
41 $this->getOutput()->addWikiMsg( 'intentionallyblankpage' );
42 }
43}
44
46class_alias( SpecialBlankpage::class, 'SpecialBlankpage' );
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getOutput()
Get the OutputPage being used for this instance.
Shortcut to construct a special page which is unlisted by default.
Special page designed for basic benchmarking of MediaWiki since it doesn't really do much.
execute( $par)
Default execute method Checks user permissions.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...