Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Services/FormatterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Wikibase\LocalMedia\Services;

use ParserOptions;
use RequestContext;
use ValueFormatters\FormatterOptions;
use ValueFormatters\ValueFormatter;
Expand All @@ -27,7 +28,7 @@ public function newFormatter( string $format, FormatterOptions $options ): Value

if ( $snakFormat->isPossibleFormat( SnakFormatter::FORMAT_HTML_VERBOSE, $format ) ) {
return new InlineImageFormatter(
RequestContext::getMain()->getOutput()->parserOptions(),
ParserOptions::newFromContext( RequestContext::getMain() ),
$this->thumbLimits,
$options->getOption( ValueFormatter::OPT_LANG ),
new LocalImageLinker(),
Expand Down
Loading