Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/markup/PhabricatorImageRemarkupRule.php
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | foreach ($images as $image) { | ||||
array( | array( | ||||
'src' => $direct_uri, | 'src' => $direct_uri, | ||||
'alt' => $args['alt'], | 'alt' => $args['alt'], | ||||
'width' => $args['width'], | 'width' => $args['width'], | ||||
'height' => $args['height'], | 'height' => $args['height'], | ||||
)); | )); | ||||
} else { | } else { | ||||
$src_uri = id(new PhutilURI('/file/imageproxy/')) | $src_uri = id(new PhutilURI('/file/imageproxy/')) | ||||
->setQueryParam('uri', $uri); | ->replaceQueryParam('uri', $uri); | ||||
$img = id(new PHUIRemarkupImageView()) | $img = id(new PHUIRemarkupImageView()) | ||||
->setURI($src_uri) | ->setURI($src_uri) | ||||
->setAlt($args['alt']) | ->setAlt($args['alt']) | ||||
->setWidth($args['width']) | ->setWidth($args['width']) | ||||
->setHeight($args['height']); | ->setHeight($args['height']); | ||||
} | } | ||||
Show All 11 Lines |