Merge pull request #4526 from danrye/patch-1

Add support for width and height to embedded photos
This commit is contained in:
Daniel Hensby 2015-08-22 10:51:15 +01:00
commit 19838194a3

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();
}