X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FcheckSyntax.php;h=30a23d3041021d80bbf80d3e23534619a6872055;hb=b14d581dab129f00135a0136ef2727ce0f8f9282;hp=6ef4909e1a59733e99ae3bb9e20d3d604400548d;hpb=05b8af8b91dac965c67571668187d1dc2511ae03;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkSyntax.php b/maintenance/checkSyntax.php index 6ef4909e1a..30a23d3041 100644 --- a/maintenance/checkSyntax.php +++ b/maintenance/checkSyntax.php @@ -121,9 +121,9 @@ class CheckSyntax extends Maintenance { return; // process only this path } elseif ( $this->hasOption( 'list-file' ) ) { $file = $this->getOption( 'list-file' ); - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $f = fopen( $file, 'r' ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( !$f ) { $this->error( "Can't open file $file\n", true ); } @@ -345,7 +345,6 @@ class CheckSyntax extends Maintenance { * or pointless ?> closing tags at the end. * * @param string $file String Path to a file to check for errors - * @return bool */ private function checkForMistakes( $file ) { foreach ( $this->mNoStyleCheckPaths as $regex ) {