MINOR: Add a fallback thumbnail image for oEmbed inserts

This commit is contained in:
Simon Welsh 2012-05-24 20:05:51 +12:00
parent 30ecb9f531
commit 15a5dab395
3 changed files with 2 additions and 1 deletions

View File

@ -39,3 +39,4 @@ and [installation from source](http://doc.silverstripe.org/framework/en/installa
## Attribution ##
* Some icons by [Yusuke Kamiyamane](http://p.yusukekamiyamane.com/). All rights reserved. Licensed under a [Creative Commons Attribution 3.0 License](http://creativecommons.org/licenses/by/3.0/).
* default_media.png by Thibault Geffroy from [The Noun Project](http://thenounproject.com/). All rights reserved. Licensed under a [Creative Commons Attribution 3.0 License](http://creativecommons.org/licenses/by/3.0/).

View File

@ -553,7 +553,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
} elseif($file->Type == 'photo') {
$thumbnailURL = $file->Oembed->url;
} else {
$thumbnailURL = $url;
$thumbnailURL = FRAMEWORK_DIR . '/images/default_media.png';
}
$previewField = new LiteralField("ImageFull",

BIN
images/default_media.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB