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
Renamed /job to /jobqueue
[lhc/web/wiklou.git]
/
includes
/
WebStart.php
diff --git
a/includes/WebStart.php
b/includes/WebStart.php
index
604a3c0
..
eb79134
100644
(file)
--- a/
includes/WebStart.php
+++ b/
includes/WebStart.php
@@
-91,9
+91,6
@@
if ( $IP === false ) {
}
}
}
}
-# Get MWInit class
-require_once "$IP/includes/Init.php";
-
# Start the autoloader, so that extensions can derive classes from core files
require_once "$IP/includes/AutoLoader.php";
# Start the autoloader, so that extensions can derive classes from core files
require_once "$IP/includes/AutoLoader.php";
@@
-121,7
+118,7
@@
if ( is_readable( "$IP/vendor/autoload.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
-
MWFunction::call
( MW_CONFIG_CALLBACK );
+
call_user_func
( MW_CONFIG_CALLBACK );
} else {
if ( !defined( 'MW_CONFIG_FILE' ) ) {
define( 'MW_CONFIG_FILE', "$IP/LocalSettings.php" );
} else {
if ( !defined( 'MW_CONFIG_FILE' ) ) {
define( 'MW_CONFIG_FILE', "$IP/LocalSettings.php" );
@@
-129,8
+126,8
@@
if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
# LocalSettings.php is the per site customization file. If it does not exist
# the wiki installer needs to be launched or the generated file uploaded to
# LocalSettings.php is the per site customization file. If it does not exist
# the wiki installer needs to be launched or the generated file uploaded to
- # the root wiki directory
- if ( !
file_exists
( MW_CONFIG_FILE ) ) {
+ # the root wiki directory
. Give a hint, if it is not readable by the server.
+ if ( !
is_readable
( MW_CONFIG_FILE ) ) {
require_once "$IP/includes/templates/NoLocalSettings.php";
die();
}
require_once "$IP/includes/templates/NoLocalSettings.php";
die();
}