diff options
author | Jforrester <jforrester@wikimedia.org> | 2020-02-07 17:54:55 +0000 |
---|---|---|
committer | Jforrester <jforrester@wikimedia.org> | 2020-02-07 17:55:04 +0000 |
commit | c9d34f345cb8a3741db9f94a7664bcaaa092770b (patch) | |
tree | c0bdffd123aaeb7e1d0462db31e47fe13dc0e730 /mw-config/index.php | |
parent | 692e5d9d0dbc10194902b008367048f63e141bf1 (diff) | |
download | mediawikicore-c9d34f345cb8a3741db9f94a7664bcaaa092770b.tar.gz mediawikicore-c9d34f345cb8a3741db9f94a7664bcaaa092770b.zip |
Revert "mw-config: Avoid nested calls to `dirname()`, use levels"
This reverts commit 70990948050e5626f910132ca56af61ae09dba34.
Reason for revert: Let's maintain PHP4-compat.
Change-Id: I47b9b758fc3cf4df5c49bd148706f69e567b2440
Diffstat (limited to 'mw-config/index.php')
-rw-r--r-- | mw-config/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mw-config/index.php b/mw-config/index.php index bf1e02e8b60b..6d9e1566c9ad 100644 --- a/mw-config/index.php +++ b/mw-config/index.php @@ -27,7 +27,7 @@ use MediaWiki\MediaWikiServices; // dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+. // phpcs:ignore MediaWiki.Usage.DirUsage.FunctionFound require_once dirname( __FILE__ ) . '/../includes/PHPVersionCheck.php'; -wfEntryPointCheck( 'html', dirname( $_SERVER['SCRIPT_NAME'], 2 ) ); +wfEntryPointCheck( 'html', dirname( dirname( $_SERVER['SCRIPT_NAME'] ) ) ); define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' ); define( 'MEDIAWIKI_INSTALL', true ); |