Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7459266
__bootstrap.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
712 B
Referenced Files
None
Subscribers
None
__bootstrap.php
View Options
<?php
declare
(
strict_types
=
1
);
/*
* Boilerpate code for bootstrapping maintenance scripts.
*
* This code must be in global scope. Callers must define $class;
*/
$env
=
getenv
(
'MW_INSTALL_PATH'
);
$IP
=
$env
!==
false
?
$env
:
__DIR__
.
'/../../..'
;
require_once
"$IP/maintenance/Maintenance.php"
;
// Manually load required classes, as autoloader is not available until RUN_MAINTENANCE_IF_MAIN
require_once
__DIR__
.
'/../src/Utilities/BaseMaintenanceScript.php'
;
// $maintClass must be after Maintenance.php
$maintClass
=
$class
;
$file
=
strtr
(
$maintClass
,
[
'MediaWiki
\\
Extension
\\
Translate
\\
'
=>
''
,
'
\\
'
=>
'/'
]
);
require_once
__DIR__
.
"/../src/$file.php"
;
require_once
RUN_MAINTENANCE_IF_MAIN
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 01:52 (2 d, 18 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c2/36/6b514fb3212bad629aa3e4d275f6
Default Alt Text
__bootstrap.php (712 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment