Pass context to FormatMetadata class on ImagePage
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 28 Dec 2014 20:31:34 +0000 (21:31 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 30 Jan 2015 19:31:54 +0000 (20:31 +0100)
commitdc1b084079a508ad73b709812f651a5cf1c3712c
treeae253866e48dcf46b9ded53bd74197baafe2f8ef
parent576adbca56671e3d4a0059d83dd8961a15dde867
Pass context to FormatMetadata class on ImagePage

This avoids on image page:
ContextSource::getContext (FormatMetadata): called and $context is null.
Using RequestContext::getMain() for sanity

Change-Id: I92774e1a88f03d44967d1797c6c2b8a31c1b10fc
includes/filerepo/file/File.php
includes/media/ExifBitmap.php
includes/media/GIF.php
includes/media/MediaHandler.php
includes/media/PNG.php
includes/media/SVG.php
includes/page/ImagePage.php