// 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 ) {
$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 ) {
// 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(