Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431556
LocalFileLockError.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
731 B
Referenced Files
None
Subscribers
None
LocalFileLockError.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\FileRepo\File
;
use
MediaWiki\Exception\ErrorPageError
;
use
MediaWiki\Status\Status
;
/**
* @newable
* @stable to extend
* @ingroup FileAbstraction
*/
class
LocalFileLockError
extends
ErrorPageError
{
/**
* @stable to call
*
* @param Status $status
*/
public
function
__construct
(
Status
$status
)
{
parent
::
__construct
(
'actionfailed'
,
$status
->
getMessage
()
);
}
/** @inheritDoc */
public
function
report
(
$action
=
self
::
SEND_OUTPUT
)
{
global
$wgOut
;
$wgOut
->
setStatusCode
(
429
);
parent
::
report
(
$action
);
}
}
/** @deprecated class alias since 1.44 */
class_alias
(
LocalFileLockError
::
class
,
'LocalFileLockError'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 20:44 (1 d, 7 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
58/6b/25946fccbc1ca2b6dd1af8077e6f
Default Alt Text
LocalFileLockError.php (731 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment