Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ts that don't provide one.
  • Loading branch information...
commit 30ecb9f5315b6c02d681a2b9b9ff94943fc59b88 1 parent 1772355
@simonwelsh simonwelsh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 forms/HtmlEditorField.php
View
4 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() {
Please sign in to comment.
Something went wrong with that request. Please try again.