Gallery: Use Parser::parseWidthParam() for gallery dimensions
authorPrateek Saxena <prtksxna@gmail.com>
Sun, 19 Jun 2016 06:41:43 +0000 (12:11 +0530)
committerArlo Breault <abreault@wikimedia.org>
Thu, 25 Jan 2018 22:35:40 +0000 (17:35 -0500)
commit60a64e89125b1bda123cb03095a46575665b1291
tree655f607014c3bf5fa45a95383cd88fcc75131dd5
parent495e8ddf7e6940777f3318a1a2e37d85bfdbdbf1
Gallery: Use Parser::parseWidthParam() for gallery dimensions

Used by the `setWidths` and `setHeights` methods to make sure we are
using correct values.

Makes `parseWidthParam` static to be used in the gallery class.

Bug: T129372
Change-Id: I38b9ef0ea26e3748ad5d5458fadd2545f677ef93
includes/gallery/ImageGalleryBase.php
includes/parser/CoreParserFunctions.php
includes/parser/Parser.php
tests/parser/parserTests.txt