X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2Fjsparse.php;h=661ec9862b3ccfc4fe1fe1b538567e1974bf3408;hb=5a7e9ba954c9b0556269be941080cd8c8fd10ff0;hp=49b945cbadfce6bd79340de5a7b0edb423ac9d46;hpb=2480aae0c97d822e10b50619e7b48b25c45af073;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/jsparse.php b/maintenance/jsparse.php index 49b945cbad..661ec9862b 100644 --- a/maintenance/jsparse.php +++ b/maintenance/jsparse.php @@ -47,9 +47,9 @@ class JSParseHelper extends Maintenance { $parser = new JSParser(); foreach ( $files as $filename ) { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $js = file_get_contents( $filename ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $js === false ) { $this->output( "$filename ERROR: could not read file\n" ); $this->errs++; @@ -73,5 +73,5 @@ class JSParseHelper extends Maintenance { } } -$maintClass = "JSParseHelper"; +$maintClass = JSParseHelper::class; require_once RUN_MAINTENANCE_IF_MAIN;