Permalink
Browse files

BUGFIX: Provide a default width and height of 100px for those endpoin…

…ts that don't provide one.
  • Loading branch information...
1 parent 1772355 commit 30ecb9f5315b6c02d681a2b9b9ff94943fc59b88 @simonwelsh simonwelsh committed May 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 forms/HtmlEditorField.php
@@ -825,11 +825,11 @@ public function __construct($url, $file = null) {
}
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() {

0 comments on commit 30ecb9f

Please sign in to comment.