Make FormatMetadata accept RequestContext, instead of hard coding $wgLang.
authorBrian Wolff <bawolff+wn@gmail.com>
Wed, 7 Aug 2013 23:03:34 +0000 (20:03 -0300)
committertgr <tgr.huwiki@gmail.com>
Tue, 29 Oct 2013 16:12:15 +0000 (16:12 +0000)
commitb6aa32bf01ec47012a685db26034076159c94dae
tree4e199902e550d168557c1d1405e45255e6069bbe
parent2cbd926e3493ac065547aa4e9b0b4035f1d192b9
Make FormatMetadata accept RequestContext, instead of hard coding $wgLang.

The point of this patch is to allow someone to use this class
to get the metadata formatted in the language of their choice
(by passing in an appropriate context object), instead of
forcing $wgLang. This is important for future evil plans I
have.

To do this, some of the previous static methods were changed
to non-static. I checked and fixed all users of such methods
(including extensions). Some of the implied private methods
were also explicitly marked as such.

Change-Id: I673d99fa36280d1baf14c150f4aaff039676830a
includes/media/ExifBitmap.php
includes/media/FormatMetadata.php
tests/phpunit/includes/media/FormatMetadataTest.php
tests/phpunit/includes/media/GIFTest.php
tests/phpunit/includes/media/JpegTest.php
tests/phpunit/includes/media/PNGTest.php
tests/phpunit/includes/media/SVGTest.php