if ($this->userOnlineGroupID) {
$group = UserGroup::getGroupByID($this->userOnlineGroupID);
if ($group !== null && $group->userOnlineMarking && $group->userOnlineMarking != '%s') {
- return sprintf($group->userOnlineMarking, $username);
+ return str_replace('%s', $username, $group->userOnlineMarking);
}
}
$username = StringUtil::encodeHTML($this->username);
if ($this->userOnlineMarking && $this->userOnlineMarking != '%s') {
- $username = sprintf($this->userOnlineMarking, $username);
+ $username = str_replace('%s', $username, $this->userOnlineMarking);
}
if ($this->canViewOnlineStatus == 3) {
foreach (UserGroup::getGroupsByType() as $group) {
if ($group->userOnlineMarking != '%s') {
$priorities[] = $group->priority;
- $this->usersOnlineMarkings[] = sprintf($group->userOnlineMarking, StringUtil::encodeHTML(WCF::getLanguage()->get($group->groupName)));
+ $this->usersOnlineMarkings[] = str_replace('%s', StringUtil::encodeHTML(WCF::getLanguage()->get($group->groupName)), $group->userOnlineMarking);
}
}