dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Generate Utf8Case.ser directly from UnicodeData.txt"
[lhc/web/wiklou.git]
/
maintenance
/
runBatchedQuery.php
diff --git
a/maintenance/runBatchedQuery.php
b/maintenance/runBatchedQuery.php
index
6322d31
..
76340cd
100644
(file)
--- a/
maintenance/runBatchedQuery.php
+++ b/
maintenance/runBatchedQuery.php
@@
-23,7
+23,7
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-require_once
( dirname( __FILE__ ) . '/Maintenance.php' )
;
+require_once
__DIR__ . '/Maintenance.php'
;
/**
* Maintenance script to run a database query in batches and wait for slaves.
/**
* Maintenance script to run a database query in batches and wait for slaves.
@@
-38,8
+38,9
@@
class BatchedQueryRunner extends Maintenance {
}
public function execute() {
}
public function execute() {
- if ( !$this->hasArg() )
+ if ( !$this->hasArg() )
{
$this->error( "No query specified. Specify the query as a command line parameter.", true );
$this->error( "No query specified. Specify the query as a command line parameter.", true );
+ }
$query = $this->getArg();
$n = 1;
$query = $this->getArg();
$n = 1;
@@
-59,6
+60,5
@@
class BatchedQueryRunner extends Maintenance {
}
}
}
}
-
$maintClass = "BatchedQueryRunner";
$maintClass = "BatchedQueryRunner";
-require_once
( RUN_MAINTENANCE_IF_MAIN )
;
+require_once
RUN_MAINTENANCE_IF_MAIN
;