Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4117270
SpecialMobileHistory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
924 B
Referenced Files
None
Subscribers
None
SpecialMobileHistory.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 02:05 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8f/b7/a47e2e44647ca1c7a46f873f7310
Default Alt Text
SpecialMobileHistory.php (924 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment