}
public function execute() {
- global $wgLocalDatabases, $wgUser;
+ global $IP, $wgLocalDatabases, $wgUser;
$username = wfMessage( 'spambot_username' )->text();
$wgUser = User::newFromName( $username );
array( 'el_index' . $dbr->buildLike( $like ) ), __METHOD__ );
if ( $count ) {
$found = true;
- passthru( "php cleanupSpam.php --wiki='$wikiID' $spec | sed 's/^/$wikiID: /'" );
+ $cmd = wfShellWikiCmd( "$IP/maintenance/cleanupSpam.php",
+ array( '--wiki', $wikiID, $spec ) );
+ passthru( "$cmd | sed 's/^/$wikiID: /'" );
}
}
if ( $found ) {