1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Don't drop "phabricator-remarkup-embed-image" class from Remarkup images with width or height

Summary: Ref T10110. If an image had `width` or `height`, we would accidentally not give it an `$image_class`.

Test Plan:
{F1057988}

{F1057989}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10110

Differential Revision: https://secure.phabricator.com/D14983
This commit is contained in:
epriestley 2016-01-09 13:46:28 -08:00
parent 67ac356b03
commit ff6bfe387d

View file

@ -79,7 +79,7 @@ final class PhabricatorEmbedFileRemarkupRule
require_celerity_resource('lightbox-attachment-css');
$attrs = array();
$image_class = null;
$image_class = 'phabricator-remarkup-embed-image';
$use_size = true;
if (!$options['size']) {
@ -117,8 +117,6 @@ final class PhabricatorEmbedFileRemarkupRule
$attrs['width'] = $x;
$attrs['height'] = $y;
}
$image_class = 'phabricator-remarkup-embed-image';
break;
}
}