CSSMin: Correctly avoid fallbacks when embedding SVG files
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 2 Nov 2016 09:25:40 +0000 (10:25 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 2 Nov 2016 09:26:21 +0000 (10:26 +0100)
commitc48e061f677d3f9c59ed543ff0630e926418df5b
tree619b37cebf2899fee89c798824bf10bda9dea19d
parentf441c63a441be3169fca104dcb8cc492fc30ba73
CSSMin: Correctly avoid fallbacks when embedding SVG files

The check for file existence before checking its MIME type was
building the path incorrectly, causing this piece of code to always
think the file does not exist. (The code to actually embed the file
was correct.)

This was not caught by the tests before of a bug in the test code,
which cancelled out this one.

Bug: T100958
Change-Id: I4469079f41d48052d0a02f98bb1ed02407abd54c
includes/libs/CSSMin.php
tests/phpunit/includes/libs/CSSMinTest.php