Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7418617
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
Sun, Nov 22, 04:01 (1 d, 7 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b0/c1/a5340e00978e24918fb242390e6f
Default Alt Text
run.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment