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
http -> https rewrite: Only replace one http by https
[lhc/web/wiklou.git]
/
mw-config
/
index.php
diff --git
a/mw-config/index.php
b/mw-config/index.php
index
2823210
..
fc7eadb
100644
(file)
--- a/
mw-config/index.php
+++ b/
mw-config/index.php
@@
-23,12
+23,10
@@
define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' );
define( 'MEDIAWIKI_INSTALL', true );
define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' );
define( 'MEDIAWIKI_INSTALL', true );
+// Resolve relative to regular MediaWiki root
+// instead of mw-config subdirectory.
chdir( dirname( __DIR__ ) );
chdir( dirname( __DIR__ ) );
-if ( isset( $_SERVER['MW_COMPILED'] ) ) {
- require ( 'core/includes/WebStart.php' );
-} else {
- require( dirname( __DIR__ ) . '/includes/WebStart.php' );
-}
+require dirname( __DIR__ ) . '/includes/WebStart.php';
wfInstallerMain();
wfInstallerMain();