aboutsummaryrefslogtreecommitdiff
path: root/app/class/Media.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/Media.php')
-rw-r--r--app/class/Media.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/class/Media.php b/app/class/Media.php
index def4645..9df2fef 100644
--- a/app/class/Media.php
+++ b/app/class/Media.php
@@ -100,7 +100,10 @@ class Media extends Item
break;
case 'video':
- $code = '<video controls=""><source src="' . $this->getincludepath() . '" type="video/' . $this->extension . '"></video>';
+ $src = $this->getincludepath();
+ $ext = $this->extension;
+ $code = '<video controls="">';
+ $code .= '<source src="' . $src . '" type="video/' . $ext . '"></video>';
break;
default:
@@ -267,14 +270,14 @@ class Media extends Item
public function setwidth($width)
{
if (is_int($width)) {
- $this->width = strip_tags(strtolower($width));
+ $this->width = $width;
}
}
public function setheight($height)
{
if (is_int($height)) {
- $this->height = strip_tags(strtolower($height));
+ $this->height = $height;
}
}