Make msg method of DerivativeContext work properly.
authorBrian Wolff <bawolff+wn@gmail.com>
Mon, 12 Aug 2013 18:29:29 +0000 (15:29 -0300)
committerIAlex <codereview@emsenhuber.ch>
Sun, 18 Aug 2013 09:20:38 +0000 (09:20 +0000)
commit45024d218d782576d5b1da62cf6ba3d53de1c736
treeecd36795f5098f651e9beb979f513359e3954d6d
parent470bf4b370afdfb181b4088e0ba82a5cf29253ea
Make msg method of DerivativeContext work properly.

Previously, the msg method was not taking into account any
changes to the context, and was just using the original context.

For example, if you had a DerivativeContext object, where the
original context had a language of en, and then you did
$derivContext->setLanguage( 'fr' );, $derivContext->msg( 'foo' )
was still outputting stuff in english instead of french.

Change-Id: I4a87e0e2664e77bf79a80c873db384e0c3f607e7
includes/context/DerivativeContext.php