Merge pull request #2007 from adrexia/extraclass-on-media

BUG: Classes applied to media are too generic to use
This commit is contained in:
Sam Minnée 2013-05-24 23:46:28 -07:00
commit 72fd984bf6

View File

@ -311,9 +311,9 @@ class Oembed_Result extends ViewableData {
case 'video': case 'video':
case 'rich': case 'rich':
if($this->extraClass) { if($this->extraClass) {
return "<div class='$this->extraClass'>$this->HTML</div>"; return "<div class='media $this->extraClass'>$this->HTML</div>";
} else { } else {
return $this->HTML; return "<div class='media'>$this->HTML</div>";
} }
break; break;
case 'link': case 'link':