summaryrefslogtreecommitdiff
path: root/maintenance/parse.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/parse.php')
-rw-r--r--maintenance/parse.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/maintenance/parse.php b/maintenance/parse.php
index 7b05cb7b..d6559657 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" );