Catch excpt to avoid fatal in Message::__toString
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 7 Jan 2013 13:48:04 +0000 (14:48 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 8 Jan 2013 16:55:31 +0000 (17:55 +0100)
commit185e4eee1038051c870787b55e33d9868d82f92e
treeebebbaf6c0550e6790cb60a590d673375515ff13
parent22bfd9887e2f2ce087b3e002279d78c6312f7ceb
Catch excpt to avoid fatal in Message::__toString

PHP doesn't allow __toString to throw exceptions and will
trigger a fatal error if it does. So, catch any exceptions
and try to report them using wfWarn.

Change-Id: I52d38e9a927da4db18f4733fd207f9396adedf94
includes/Message.php