Page MenuHomeWickedGov Phorge

SpecialMobileHistory.php
No OneTemporary

Size
924 B
Referenced Files
None
Subscribers
None

SpecialMobileHistory.php

<?php
use MediaWiki\SpecialPage\UnlistedSpecialPage;
use MediaWiki\Title\Title;
use MediaWiki\User\User;
/**
* Mobile formatted history of a page
*/
class SpecialMobileHistory extends UnlistedSpecialPage {
public function __construct() {
parent::__construct( 'History' );
}
/**
* Checks, if the given title supports the use of SpecialMobileHistory.
* Always returns false.
*
* @deprecated 1.41 retained for backwards compatibility;
* @param Title $title The title to check
* @param User $user the user to check
* @return bool True, if SpecialMobileHistory can be used, false otherwise
*/
public static function shouldUseSpecialHistory( Title $title, User $user ) {
return false;
}
/**
* @inheritDoc
*/
public function execute( $subpage ) {
$url = wfAppendQuery( wfScript( 'index' ), [ 'title' => $subpage, 'action' => 'history' ] );
$this->getOutput()->redirect( $url, '301' );
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Aug 19, 02:05 (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8f/b7/a47e2e44647ca1c7a46f873f7310
Default Alt Text
SpecialMobileHistory.php (924 B)

Event Timeline