X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupSpam.php;h=e1ea247377a7ddfbb1ff8b8e234c5206020d908a;hb=e4f1fbddecf4fee12cd6bf3429e5c7d112a307a4;hp=17d2e188d2499397d286df52c64063883389e767;hpb=1d5344025f02e1b2b9646c6d88083255edd87f58;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupSpam.php b/maintenance/cleanupSpam.php index 17d2e188d2..e1ea247377 100644 --- a/maintenance/cleanupSpam.php +++ b/maintenance/cleanupSpam.php @@ -52,7 +52,7 @@ class CleanupSpam extends Maintenance { // Hack: Grant bot rights so we don't flood RecentChanges $wgUser->addGroup( 'bot' ); - $spec = $this->getArg(); + $spec = $this->getArg( 0 ); $protConds = []; foreach ( [ 'http://', 'https://' ] as $prot ) { @@ -68,7 +68,7 @@ class CleanupSpam extends Maintenance { $this->output( "Finding spam on " . count( $wgLocalDatabases ) . " wikis\n" ); $found = false; foreach ( $wgLocalDatabases as $wikiID ) { - /** @var $dbr Database */ + /** @var Database $dbr */ $dbr = $this->getDB( DB_REPLICA, [], $wikiID ); foreach ( $protConds as $conds ) { @@ -97,7 +97,7 @@ class CleanupSpam extends Maintenance { // Clean up spam on this wiki $count = 0; - /** @var $dbr Database */ + /** @var Database $dbr */ $dbr = $this->getDB( DB_REPLICA ); foreach ( $protConds as $prot => $conds ) { $res = $dbr->select(