summaryrefslogtreecommitdiff
path: root/includes/specials/SpecialBlankpage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/specials/SpecialBlankpage.php')
-rw-r--r--includes/specials/SpecialBlankpage.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/includes/specials/SpecialBlankpage.php b/includes/specials/SpecialBlankpage.php
index 29d6b96c..e1fadd02 100644
--- a/includes/specials/SpecialBlankpage.php
+++ b/includes/specials/SpecialBlankpage.php
@@ -1,6 +1,17 @@
<?php
-
-function wfSpecialBlankpage() {
- global $wgOut;
- $wgOut->addWikiMsg('intentionallyblankpage');
+/**
+ * Special page designed for basic benchmarking of
+ * MediaWiki since it doesn't really do much.
+ *
+ * @ingroup SpecialPage
+ */
+class SpecialBlankpage extends UnlistedSpecialPage {
+ public function __construct() {
+ parent::__construct( 'Blankpage' );
+ }
+ public function execute( $par ) {
+ global $wgOut;
+ $this->setHeaders();
+ $wgOut->addWikiMsg('intentionallyblankpage');
+ }
}