Page MenuHomePhabricator

TimelineRowFormatter uses a custom signature for the msg method
Closed, DeclinedPublic

Description

Problem
As @DannyS712 pointed out the TimelineRowFormatter uses a custom signature for the msg method.

Proposed Solution
TimelineRowFormatter could implement MessageLocalizer interface which would make the msg method consistent with other places it is found in MediaWiki.

Event Timeline

The current msg method is private, the interface calls for public, so that would need to be changed.
That being said, since a context is available, I would suggest just using $this->context->msg() directly, and removing TimelineRowFormatter::msg entirely

I would suggest just using $this->context->msg() directly, and removing TimelineRowFormatter::msg entirely

That makes more sense to me! :)

Change 636527 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/extensions/CheckUser@master] TimelineRowFormatter::msg implement MessageLocalizer

https://gerrit.wikimedia.org/r/636527

Change 636527 abandoned by DannyS712:
[mediawiki/extensions/CheckUser@master] TimelineRowFormatter::msg implement MessageLocalizer

Reason:

https://gerrit.wikimedia.org/r/636527