Fix Bug 30681 - Wrong escaping for inexistent messages.
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>
Wed, 28 Mar 2012 05:55:45 +0000 (11:25 +0530)
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>
Wed, 28 Mar 2012 06:02:04 +0000 (11:32 +0530)
commit8824515e571eadd4a63b09e1331f35309315603f
tree33d5092ae8177b2d38715322cdd2968dd9718263
parent74e089667c3a7a8291943661168d974cae9d45a7
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
includes/Message.php