HomePhabricator

Fix Bug 30681 - Wrong escaping for inexistent messages.

Authored by santhosh.

Description

Fix Bug 30681 - Wrong escaping for inexistent messages.

  • If the message does not exist, do an early return from the toString method, instead of going through replaceParameter and format comparisons.
  • Avoid getMessageText method.
  • If the format is plain, do not escape the angle brackets.

Change-Id: I4561ee75d991ef8df3399ab17e5d75cb81f63f8f