Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4136072
run.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
run.php
View Options
<?php
/**
* Entry point for running maintenance scripts.
*
* @file
* @ingroup Maintenance
*/
use
MediaWiki\Maintenance\MaintenanceRunner
;
use
MediaWiki\Settings\SettingsBuilder
;
// No AutoLoader yet
require_once
__DIR__
.
'/Maintenance.php'
;
require_once
__DIR__
.
'/includes/MaintenanceRunner.php'
;
require_once
__DIR__
.
'/includes/MaintenanceParameters.php'
;
// Not in file scope, abort!
if
(
!
MaintenanceRunner
::
shouldExecute
()
)
{
return
;
}
// Define the MediaWiki entrypoint
define
(
'MEDIAWIKI'
,
true
);
$IP
=
wfDetectInstallPath
();
require_once
"$IP/includes/AutoLoader.php"
;
// phpcs:disable: MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix
$runner
=
new
MaintenanceRunner
();
$runner
->
initFromWrapper
(
$argv
);
$runner
->
defineSettings
();
// Custom setup for Maintenance entry point
if
(
!
defined
(
'MW_FINAL_SETUP_CALLBACK'
)
)
{
// Define a function, since we can't put a closure or object
// reference into MW_FINAL_SETUP_CALLBACK.
function
wfMaintenanceRunSetup
(
SettingsBuilder
$settingsBuilder
)
{
global
$runner
;
$runner
->
setup
(
$settingsBuilder
);
}
define
(
'MW_FINAL_SETUP_CALLBACK'
,
'wfMaintenanceRunSetup'
);
}
// Initialize MediaWiki (load settings, extensions, etc).
require_once
"$IP/includes/Setup.php"
;
$success
=
$runner
->
run
();
// Exit with an error status if execute() returned false
if
(
!
$success
)
{
exit
(
1
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 13:32 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
26/a6/49ca0ddab5c255ffb38ebec5f999
Default Alt Text
run.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment