X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckSyntax.php;h=30a23d3041021d80bbf80d3e23534619a6872055;hb=d03cfd3fa90b750bcaec1b72d23f917090fc04a1;hp=6ef4909e1a59733e99ae3bb9e20d3d604400548d;hpb=19a38526f390cfdc6a6061cc055fc7f13167bf03;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 ) {