mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01: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:
parent
67ac356b03
commit
ff6bfe387d
1 changed files with 1 additions and 3 deletions
|
@ -79,7 +79,7 @@ final class PhabricatorEmbedFileRemarkupRule
|
||||||
require_celerity_resource('lightbox-attachment-css');
|
require_celerity_resource('lightbox-attachment-css');
|
||||||
|
|
||||||
$attrs = array();
|
$attrs = array();
|
||||||
$image_class = null;
|
$image_class = 'phabricator-remarkup-embed-image';
|
||||||
|
|
||||||
$use_size = true;
|
$use_size = true;
|
||||||
if (!$options['size']) {
|
if (!$options['size']) {
|
||||||
|
@ -117,8 +117,6 @@ final class PhabricatorEmbedFileRemarkupRule
|
||||||
$attrs['width'] = $x;
|
$attrs['width'] = $x;
|
||||||
$attrs['height'] = $y;
|
$attrs['height'] = $y;
|
||||||
}
|
}
|
||||||
|
|
||||||
$image_class = 'phabricator-remarkup-embed-image';
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue