From: Arlo Breault Date: Mon, 20 Jul 2015 20:22:24 +0000 (-0700) Subject: Suppress stdin warning with --quiet X-Git-Tag: 1.31.0-rc.0~10660^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=72c606830035a41ec7d862504be31d7efac61d07;p=lhc%2Fweb%2Fwiklou.git Suppress stdin warning with --quiet Change-Id: I789260be1c83e0f081e6b7cd84cdab291d07837e --- diff --git a/maintenance/parse.php b/maintenance/parse.php index 7b05cb7b99..d6559657cb 100644 --- a/maintenance/parse.php +++ b/maintenance/parse.php @@ -89,11 +89,10 @@ class CLIParser extends Maintenance { * @return string Wikitext */ protected function Wikitext() { - $php_stdin = 'php://stdin'; $input_file = $this->getArg( 0, $php_stdin ); - if ( $input_file === $php_stdin ) { + if ( $input_file === $php_stdin && !$this->mQuiet ) { $ctrl = wfIsWindows() ? 'CTRL+Z' : 'CTRL+D'; $this->error( basename( __FILE__ ) . ": warning: reading wikitext from STDIN. Press $ctrl to parse.\n" );