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 "HistoryPager: Unset 'date-range-to' parameter when paging"
[lhc/web/wiklou.git]
/
maintenance
/
cleanupPreferences.php
diff --git
a/maintenance/cleanupPreferences.php
b/maintenance/cleanupPreferences.php
index
b24d72d
..
66fc6d3
100644
(file)
--- a/
maintenance/cleanupPreferences.php
+++ b/
maintenance/cleanupPreferences.php
@@
-60,7
+60,6
@@
class CleanupPreferences extends Maintenance {
global $wgHiddenPrefs, $wgDefaultUserOptions;
$dbw = $this->getDB( DB_MASTER );
global $wgHiddenPrefs, $wgDefaultUserOptions;
$dbw = $this->getDB( DB_MASTER );
- $didWork = false;
$hidden = $this->hasOption( 'hidden' );
$unknown = $this->hasOption( 'unknown' );
$bogus = $this->hasOption( 'bogus' );
$hidden = $this->hasOption( 'hidden' );
$unknown = $this->hasOption( 'unknown' );
$bogus = $this->hasOption( 'bogus' );
@@
-100,9
+99,6
@@
class CleanupPreferences extends Maintenance {
}
}
}
}
- /**
- *
- */
private function deleteByWhere( $dbw, $startMessage, $where ) {
$this->output( $startMessage . "...\n" );
$total = 0;
private function deleteByWhere( $dbw, $startMessage, $where ) {
$this->output( $startMessage . "...\n" );
$total = 0;
@@
-118,7
+114,6
@@
class CleanupPreferences extends Maintenance {
$numRows = $res->numRows();
$total += $numRows;
if ( $res->numRows() <= 0 ) {
$numRows = $res->numRows();
$total += $numRows;
if ( $res->numRows() <= 0 ) {
- // All done!
$this->output( "DONE! (handled $total entries)\n" );
break;
}
$this->output( "DONE! (handled $total entries)\n" );
break;
}