BUGFIX: Provide a default width and height of 100px for those endpoints that don't provide one.

This commit is contained in:
Simon Welsh 2012-05-24 18:16:00 +12:00
parent 1772355ef3
commit 30ecb9f531

View File

@ -825,11 +825,11 @@ class HtmlEditorField_Embed extends HtmlEditorField_File {
}
public function getWidth() {
return $this->oembed->Width;
return $this->oembed->Width ?: 100;
}
public function getHeight() {
return $this->oembed->Height;
return $this->oembed->Height ?: 100;
}
public function getPreview() {