Echo: refactor duplicate icon handling code into getNotificationIconUrl()
Closed, ResolvedPublic


formatters/BasicFormatter.php's format() and includes/EmailFormatter.php getNotifIcon() were already duplicating code to determine the URL of a notification icon. With the fix for bug 58705 it's 20 lines of identical code.

The only difference between them is getNotifIcon() calls wfExpandUrl(); this e.g. could be an optional parameter to a common function or method.

Version: master
Severity: normal


bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz58726.
bzimport added a subscriber: Unknown Object (MLST).
EBernhardson triaged this task as Lowest priority.Dec 12 2014, 10:26 PM
EBernhardson added a project: Easy.
EBernhardson set Security to None.
Legoktm moved this task from Backlog to Needs code on the Notifications board.Jul 6 2015, 8:41 AM
Restricted Application added a project: Collaboration-Team-Triage. · View Herald TranscriptJul 6 2015, 8:41 AM
Legoktm renamed this task from refactor duplicate code into getNotificationIconUrl() to Echo: refactor duplicate icon handling code into getNotificationIconUrl().
Legoktm claimed this task.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 5 2015, 5:24 PM

Change 229475 had a related patch set uploaded (by Legoktm):
Refactor and unify icon URL logic

Catrope closed this task as Resolved.Aug 6 2015, 4:20 AM
Catrope moved this task from Needs Review to Done on the Collaboration-Team-Archive-2015-2016 board.

Change 229475 merged by jenkins-bot:
Refactor and unify icon URL logic