HomePhabricator

Updated mediawiki/core Project: mediawiki/extensions/ParsoidBatchAPI…

This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Updated mediawiki/core Project: mediawiki/extensions/ParsoidBatchAPI 1e032616da03490026b3b7d74539aa5122f74573

Fix support for height parameter and mustRender

  • Validate txopts as if they were image link parameters, by passing them through $handler->validateParam().
  • Fill in the default width if it is not set, like in Linker::makeImageLink(). Parsoid always sets the width if a thumbnail format is requested, so we can assume that the source width is desired, which reduces the amount of code somewhat. This allows transform requests with only a height to work -- box scaling is done in MediaHandler::normaliseParams().
  • Always transform the image, even if no txopts is given. This matches the behaviour of Linker::makeImageLink() and is required for mustRender() support. Parsoid will happily process the thumbnail output even if it didn't ask for it.

Bug: T111870
Bug: T112045
Change-Id: I56d28e9ae85b03ac59367fb2613da9f6b3987b4a
(cherry picked from commit deceda36737ecd68c57f65910a6db879ef764a97)

Details

Provenance
tstarlingAuthored on
Gerrit Code Review <gerrit@wikimedia.org>Committed on Sep 14 2015, 11:21 PM
ChangeId
I56d28e9ae85b03ac59367fb2613da9f6b3987b4a

Commit No Longer Exists

This commit no longer exists in the repository.