From: Chad Horohoe Date: Tue, 26 Jan 2010 13:40:00 +0000 (+0000) Subject: Inform user of parsekit/php -l usage, fix line breaks in output X-Git-Tag: 1.31.0-rc.0~38103 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=f2fbf300bedb6b3141c26f54fd624aee56648b18;p=lhc%2Fweb%2Fwiklou.git Inform user of parsekit/php -l usage, fix line breaks in output --- diff --git a/maintenance/syntaxChecker.php b/maintenance/syntaxChecker.php index bbd968c24e..ffe402566e 100644 --- a/maintenance/syntaxChecker.php +++ b/maintenance/syntaxChecker.php @@ -49,7 +49,9 @@ class SyntaxChecker extends Maintenance { // ParseKit is broken on PHP 5.3+, disabled until this is fixed $useParseKit = function_exists( 'parsekit_compile_file' ) && version_compare( PHP_VERSION, '5.3', '<' ); - $this->output( "Checking syntax (this can take a really long time)...\n\n" ); + $str = 'Checking syntax (using ' . ( $useParseKit ? + 'parsekit)' : ' php -l, this can take a long time)' ); + $this->output( $str ); foreach( $this->mFiles as $f ) { if( $useParseKit ) { $this->checkFileWithParsekit( $f ); @@ -127,7 +129,7 @@ class SyntaxChecker extends Maintenance { return; } - $this->output( "Building file list..." ); + $this->output( 'Building file list...', 'listfiles' ); // Only check files in these directories. // Don't just put $IP, because the recursive dir thingie goes into all subdirs @@ -154,7 +156,7 @@ class SyntaxChecker extends Maintenance { $this->mFiles[] = "$IP/AdminSettings.php"; } - $this->output( "done.\n" ); + $this->output( 'done.', 'listfiles' ); } /**