Talk:How To Use Replace Text

From Drunkapedia
Revision as of 06:25, 27 July 2009 by imported>Tlosk (→‎Modification)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Modification

This modification to /extensions/ReplaceText/ReplaceTextJob.php forces the bot flag to be respected so that bot edits do not display in the recent changes (unless the Show Bots option is selected).

$flags = EDIT_MINOR;

CHANGED TO

if ($wgUser->isAllowed('bot')) {
 $flags = EDIT_MINOR | EDIT_FORCE_BOT;
} else {
    $flags = EDIT_MINOR;
  }