In _role_watchdog_add_role():

$vars = array(
  'body' => 'Role !role!role_modifier added to !account by !user',
  // ...
);

!role_modifier is never given a replacement value, so the first part of it—!role—is replaced, while the '_modifier' stays on the end.

So, if I add a role called "editor," the resulting message is:

Role editoreditor_modifier added to account by user

Comments

greg.1.anderson’s picture

Here is a patch -- this is just to test iq-submit, really.

gchauhan’s picture

Assigned: Unassigned » gchauhan
Status: Active » Reviewed & tested by the community
StatusFileSize
new25.16 KB

Your patch applied successfully. Now the log message is making sense. Marking it as RTBC. And also adding the log message image.

gchauhan’s picture

Assigned: gchauhan » Unassigned

gaurav.kapoor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.