X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fjsparse.php;h=fddfc0240213b9983104d597b553d12a2bc10775;hb=d03cfd3fa90b750bcaec1b72d23f917090fc04a1;hp=caffce9708154edc0867083fa26ec6ad8041db2e;hpb=760b1e8c3baa03f27900d227faba53842524023f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/jsparse.php b/maintenance/jsparse.php index caffce9708..fddfc02402 100644 --- a/maintenance/jsparse.php +++ b/maintenance/jsparse.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script to do test JavaScript validity parses using jsmin+'s parser @@ -47,9 +47,9 @@ class JSParseHelper extends Maintenance { $parser = new JSParser(); foreach ( $files as $filename ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $js = file_get_contents( $filename ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $js === false ) { $this->output( "$filename ERROR: could not read file\n" ); $this->errs++; @@ -74,4 +74,4 @@ class JSParseHelper extends Maintenance { } $maintClass = "JSParseHelper"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;