X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fbenchmarks%2FbenchmarkParse.php;h=a3a49740ee3cd96cf9cbe6f341d050a2f8ed7636;hp=3a79ad3e6bd1e11354b3b0e3949b2da31eab891d;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=0c2687f44eb0e8c7f480b7303f89056682ba0bfb diff --git a/maintenance/benchmarks/benchmarkParse.php b/maintenance/benchmarks/benchmarkParse.php index 3a79ad3e6b..a3a49740ee 100644 --- a/maintenance/benchmarks/benchmarkParse.php +++ b/maintenance/benchmarks/benchmarkParse.php @@ -75,7 +75,7 @@ class BenchmarkParse extends Maintenance { // Set as a member variable to avoid function calls when we're timing the parse $this->linkCache = MediaWikiServices::getInstance()->getLinkCache(); - $title = Title::newFromText( $this->getArg() ); + $title = Title::newFromText( $this->getArg( 0 ) ); if ( !$title ) { $this->error( "Invalid title" ); exit( 1 ); @@ -145,7 +145,7 @@ class BenchmarkParse extends Maintenance { ], __METHOD__, [ 'ORDER BY' => 'rev_timestamp DESC', 'LIMIT' => 1 ], - [ 'revision' => [ 'INNER JOIN', 'rev_page=page_id' ] ] + [ 'revision' => [ 'JOIN', 'rev_page=page_id' ] ] ); return $id;