dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
phpcs: More require/include is not a function
[lhc/web/wiklou.git]
/
maintenance
/
doMaintenance.php
diff --git
a/maintenance/doMaintenance.php
b/maintenance/doMaintenance.php
index
f471d50
..
10984b0
100644
(file)
--- a/
maintenance/doMaintenance.php
+++ b/
maintenance/doMaintenance.php
@@
-55,20
+55,20
@@
$self = $maintenance->getName();
// Detect compiled mode
# Get the MWInit class
// Detect compiled mode
# Get the MWInit class
-require_once
( "$IP/includes/Init.php" )
;
-require_once
( "$IP/includes/AutoLoader.php" )
;
+require_once
"$IP/includes/Init.php"
;
+require_once
"$IP/includes/AutoLoader.php"
;
# Stub the profiler
# Stub the profiler
-require_once
( "$IP/includes/profiler/Profiler.php" )
;
+require_once
"$IP/includes/profiler/Profiler.php"
;
# Start the profiler
$wgProfiler = array();
if ( file_exists( "$IP/StartProfiler.php" ) ) {
# Start the profiler
$wgProfiler = array();
if ( file_exists( "$IP/StartProfiler.php" ) ) {
- require
( "$IP/StartProfiler.php" )
;
+ require
"$IP/StartProfiler.php"
;
}
// Some other requires
}
// Some other requires
-require_once
( "$IP/includes/Defines.php" )
;
-require_once
( MWInit::compiledPath( 'includes/DefaultSettings.php' )
);
+require_once
"$IP/includes/Defines.php"
;
+require_once
MWInit::compiledPath( 'includes/DefaultSettings.php'
);
if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
# Use a callback function to configure MediaWiki
if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
# Use a callback function to configure MediaWiki
@@
-81,16
+81,16
@@
if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
# Maybe a hook?
global $cluster;
$cluster = 'pmtpa';
# Maybe a hook?
global $cluster;
$cluster = 'pmtpa';
- require
( MWInit::interpretedPath( '../wmf-config/wgConf.php' )
);
+ require
MWInit::interpretedPath( '../wmf-config/wgConf.php'
);
}
// Require the configuration (probably LocalSettings.php)
}
// Require the configuration (probably LocalSettings.php)
- require
( $maintenance->loadSettings()
);
+ require
$maintenance->loadSettings(
);
}
if ( $maintenance->getDbType() === Maintenance::DB_ADMIN &&
is_readable( "$IP/AdminSettings.php" ) )
{
}
if ( $maintenance->getDbType() === Maintenance::DB_ADMIN &&
is_readable( "$IP/AdminSettings.php" ) )
{
- require
( MWInit::interpretedPath( 'AdminSettings.php' )
);
+ require
MWInit::interpretedPath( 'AdminSettings.php'
);
}
if ( $maintenance->getDbType() === Maintenance::DB_NONE ) {
}
if ( $maintenance->getDbType() === Maintenance::DB_NONE ) {
@@
-100,7
+100,7
@@
if ( $maintenance->getDbType() === Maintenance::DB_NONE ) {
}
$maintenance->finalSetup();
// Some last includes
}
$maintenance->finalSetup();
// Some last includes
-require_once
( MWInit::compiledPath( 'includes/Setup.php' )
);
+require_once
MWInit::compiledPath( 'includes/Setup.php'
);
// Much much faster startup than creating a title object
$wgTitle = null;
// Much much faster startup than creating a title object
$wgTitle = null;