From 72c606830035a41ec7d862504be31d7efac61d07 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Mon, 20 Jul 2015 13:22:24 -0700 Subject: [PATCH] Suppress stdin warning with --quiet Change-Id: I789260be1c83e0f081e6b7cd84cdab291d07837e --- maintenance/parse.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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" ); -- 2.20.1