Add support for width and height to embedded photos

Noticed that "from the web" images don't respect the width and height settings, this fixes that.
This commit is contained in:
Dan 2015-08-21 11:26:48 -04:00
parent bb15307a8f
commit 03e644ec62

View File

@ -238,7 +238,14 @@ class Oembed_Result extends ViewableData {
if(isset($options['class'])) {
$this->extraClass = $options['class'];
}
if($options) {
if(isset($options['width'])) {
$this->Width = $options['width'];
}
if(isset($options['height'])) {
$this->Height = $options['height'];
}
}
parent::__construct();
}