mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Fix boilerplate in maintenance scripts for WMF production
We run MediaWiki from directories like "php-1.39.0-wmf.26", whose names include dots, making these scripts impossible to run. Bug: T316548 Change-Id: Ic318939cea6eafb1a0cd3105517e45c9fca52f4b
This commit is contained in:
parent
f9dc5dd135
commit
1cdb3df12a
|
@ -18,7 +18,6 @@ stream_wrapper_restore( 'file' );
|
|||
$basePath = getenv( 'MW_INSTALL_PATH' );
|
||||
if ( $basePath ) {
|
||||
if ( !is_dir( $basePath )
|
||||
|| strpos( $basePath, '.' ) !== false
|
||||
|| strpos( $basePath, '~' ) !== false
|
||||
) {
|
||||
die( "Bad MediaWiki install path: $basePath\n" );
|
||||
|
|
|
@ -21,7 +21,6 @@ stream_wrapper_restore( 'file' );
|
|||
$basePath = getenv( 'MW_INSTALL_PATH' );
|
||||
if ( $basePath ) {
|
||||
if ( !is_dir( $basePath )
|
||||
|| strpos( $basePath, '.' ) !== false
|
||||
|| strpos( $basePath, '~' ) !== false
|
||||
) {
|
||||
die( "Bad MediaWiki install path: $basePath\n" );
|
||||
|
|
Loading…
Reference in a new issue