aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-10-18 14:41:38 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-10-18 14:41:38 +0200
commit917a3971302791d9df67c047c4e663c9fb04f0c4 (patch)
treebb5c0419c11d17654b392ce7512588a06af49811 /app
parent36372694c6bbb82aea8578c5c1a492bb6f10c39d (diff)
downloadwcms-917a3971302791d9df67c047c4e663c9fb04f0c4.tar.gz
wcms-917a3971302791d9df67c047c4e663c9fb04f0c4.zip
little fix
Diffstat (limited to 'app')
-rw-r--r--app/class/controllerhome.php3
-rw-r--r--app/class/media.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php
index 6932dfb..7691bab 100644
--- a/app/class/controllerhome.php
+++ b/app/class/controllerhome.php
@@ -77,6 +77,9 @@ class Controllerhome extends Controllerart
}
}
+ /**
+ * Render every pages in the database
+ */
public function renderall()
{
if ($this->user->iseditor()) {
diff --git a/app/class/media.php b/app/class/media.php
index f48c3b9..d458a33 100644
--- a/app/class/media.php
+++ b/app/class/media.php
@@ -100,7 +100,7 @@ class Media
break;
case 'video':
- $code = '&lt;video controls src="' . $this->getincludepath() . '"&gt;&lt;video/&gt;';
+ $code = '&lt;video controls=""&gt;&lt;source src="' . $this->getincludepath() . '" type="video/' . $this->extension . '"&gt;&lt;/video&gt;';
break;
}