diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /maintenance/eval.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'maintenance/eval.php')
-rw-r--r-- | maintenance/eval.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/maintenance/eval.php b/maintenance/eval.php index 1502ad3e..3bd164fd 100644 --- a/maintenance/eval.php +++ b/maintenance/eval.php @@ -31,12 +31,10 @@ * @ingroup Maintenance */ -$wgUseNormalUser = (bool)getenv( 'MW_WIKIUSER' ); - $optionsWithArgs = array( 'd' ); /** */ -require_once( "commandLine.inc" ); +require_once( dirname( __FILE__ ) . "/commandLine.inc" ); if ( isset( $options['d'] ) ) { $d = $options['d']; @@ -57,13 +55,8 @@ if ( isset( $options['d'] ) ) { } } -if ( function_exists( 'readline_add_history' ) - && Maintenance::posix_isatty( 0 /*STDIN*/ ) ) -{ - $useReadline = true; -} else { - $useReadline = false; -} +$useReadline = function_exists( 'readline_add_history' ) + && Maintenance::posix_isatty( 0 /*STDIN*/ ); if ( $useReadline ) { $historyFile = isset( $_ENV['HOME'] ) ? |