Merge "Revert "Log the reason why revision->getContent() returns null""
[lhc/web/wiklou.git] / maintenance / benchmarks / benchmarkJSMinPlus.php
index dc92516..3aa7af7 100644 (file)
@@ -37,11 +37,11 @@ class BenchmarkJSMinPlus extends Benchmarker {
        }
 
        public function execute() {
-               MediaWiki\suppressWarnings();
+               Wikimedia\suppressWarnings();
                $content = file_get_contents( $this->getOption( 'file' ) );
-               MediaWiki\restoreWarnings();
+               Wikimedia\restoreWarnings();
                if ( $content === false ) {
-                       $this->error( 'Unable to open input file', 1 );
+                       $this->fatalError( 'Unable to open input file' );
                }
 
                $filename = basename( $this->getOption( 'file' ) );
@@ -58,5 +58,5 @@ class BenchmarkJSMinPlus extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchmarkJSMinPlus';
+$maintClass = BenchmarkJSMinPlus::class;
 require_once RUN_MAINTENANCE_IF_MAIN;