Fix two minor media manager bugs

This commit is contained in:
niclasleonbock 2015-05-03 16:10:30 +02:00
parent 58ace7ee6c
commit 28f265c10a
2 changed files with 6 additions and 3 deletions

View File

@ -61,8 +61,11 @@ class MediaLibrary
{
$this->storageFolder = self::validatePath(Config::get('cms.storage.media.folder', 'media'), true);
$this->storagePath = rtrim(Config::get('cms.storage.media.path', '/storage/app/media'), '/');
if (!preg_match("/(\/\/|http|https)/", $this->storagePath)) {
$this->storagePath = Request::getBasePath() . $this->storagePath;
} else {
$this->storagePath .= '/';
}
$this->ignoreNames = Config::get('cms.storage.media.ignore', $this->defaultIgnoreNames);

View File

@ -9,7 +9,7 @@
</script>
<script type="text/template" data-control="video-template">
<video src="{src}" controls poster="<?= URL::to('modules/cms/Widgets/mediamanager/assets/images/video-poster.png') ?>">
<video src="{src}" controls poster="<?= URL::to('modules/cms/widgets/mediamanager/assets/images/video-poster.png') ?>">
<div class="panel media-player-fallback">Your browser doesn't support HTML5 video.</div>
</video>
</script>