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
resources: Collapse all jQuery UI modules into one deprecated mega-module
[lhc/web/wiklou.git]
/
maintenance
/
dumpIterator.php
diff --git
a/maintenance/dumpIterator.php
b/maintenance/dumpIterator.php
index
e9a6bc5
..
20e9459
100644
(file)
--- a/
maintenance/dumpIterator.php
+++ b/
maintenance/dumpIterator.php
@@
-34,9
+34,10
@@
require_once __DIR__ . '/Maintenance.php';
* @ingroup Maintenance
*/
abstract class DumpIterator extends Maintenance {
* @ingroup Maintenance
*/
abstract class DumpIterator extends Maintenance {
-
private $count = 0;
private $startTime;
private $count = 0;
private $startTime;
+ /** @var string|bool|null */
+ private $from;
public function __construct() {
parent::__construct();
public function __construct() {
parent::__construct();
@@
-60,6
+61,7
@@
abstract class DumpIterator extends Maintenance {
$revision->setTitle( Title::newFromText(
rawurldecode( basename( $this->getOption( 'file' ), '.txt' ) )
) );
$revision->setTitle( Title::newFromText(
rawurldecode( basename( $this->getOption( 'file' ), '.txt' ) )
) );
+ $this->from = false;
$this->handleRevision( $revision );
return;
$this->handleRevision( $revision );
return;
@@
-131,7
+133,7
@@
abstract class DumpIterator extends Maintenance {
}
$this->count++;
}
$this->count++;
- if (
isset( $this->from )
) {
+ if (
$this->from !== false
) {
if ( $this->from != $title ) {
return;
}
if ( $this->from != $title ) {
return;
}
@@
-146,12
+148,10
@@
abstract class DumpIterator extends Maintenance {
/* Stub function for processing additional options */
public function checkOptions() {
/* Stub function for processing additional options */
public function checkOptions() {
- return;
}
/* Stub function for giving data about what was computed */
public function conclusions() {
}
/* Stub function for giving data about what was computed */
public function conclusions() {
- return;
}
/* Core function which does whatever the maintenance script is designed to do */
}
/* Core function which does whatever the maintenance script is designed to do */