Changed Message::content() to pass $this to MessageContent.
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Mon, 28 Jan 2013 04:20:57 +0000 (23:20 -0500)
committerTyler Anthony Romeo <tylerromeo@gmail.com>
Mon, 28 Jan 2013 04:20:57 +0000 (23:20 -0500)
commit5f38cc2dbe1bcac84c46ee2fecbdbb241421b816
tree98122dee85392959602aaa01965a980fb52ccb38
parent6b620acc860ed229258afa0be774f34585cb6d49
Changed Message::content() to pass $this to MessageContent.

MessageContent can take either a Message or a message key in
the constructor. Since Message::content() is an instance method,
it makes sense to pass the instance itself rather than just
the key. This fixes cases where RawMessage::content() is called,
since passing RawMessage's key to MessageContent will not work
properly.

Change-Id: Ic3b935e5ac997df07eea40b438445ebd5024e306
includes/Message.php