From ba74d7cc5634af48f0ead68f67f6ba2f64b3ac98 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Mon, 3 Jul 2017 23:28:10 +0100 Subject: Working on media list --- medialist.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/medialist.php b/medialist.php index 9319acf1cd..1c950a8f36 100644 --- a/medialist.php +++ b/medialist.php @@ -182,18 +182,18 @@ if ($action === 'submit') {

getMediaType(); + if ($mediatype) { + echo GedcomTag::getLabelValue('TYPE', GedcomTag::getFileFormTypeValue($mediatype)); + } if ($media->isExternal()) { echo GedcomTag::getLabelValue('URL', $media->getFilename()); } else { if ($media->fileExists()) { - if (Auth::isEditor($WT_TREE)) { - echo GedcomTag::getLabelValue('FILE', $media->getFilename()); - $mediatype = $media->getMediaType(); - if ($mediatype) { - echo GedcomTag::getLabelValue('TYPE', GedcomTag::getFileFormTypeValue($mediatype)); - } - } if ($details === '1') { + if (Auth::isEditor($WT_TREE)) { + echo GedcomTag::getLabelValue('FILE', $media->getFilename()); + } echo GedcomTag::getLabelValue('FORM', $media->mimeType()); echo GedcomTag::getLabelValue('__FILE_SIZE__', $media->getFilesize()); $imgsize = $media->getImageAttributes(); -- cgit v1.3