From 909df93f0c145bf8756fea9cfa04bcb5edff5d08 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 19 Jun 2020 08:49:42 +0200 Subject: [PATCH] continue path handling simplifications NO_CI --- Theme/Backend/media-single.tpl.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Theme/Backend/media-single.tpl.php b/Theme/Backend/media-single.tpl.php index eec8884..6a79963 100755 --- a/Theme/Backend/media-single.tpl.php +++ b/Theme/Backend/media-single.tpl.php @@ -131,16 +131,14 @@ echo $this->getData('nav')->render(); isTextFile($media, $path)) : ?> - isAbsolute() ? $path : __DIR__ . '/../../../../' . \ltrim($path, '/'))) : ?> + isAbsolute() ? '' : __DIR__ . '/../../../../') . $media->getPath())) : ?>
printHtml(
-                            $this->getFileContent(
-                                $media->isAbsolute() ? $path : __DIR__ . '/../../../../' . \ltrim($path, '/')
-                            )
+                            $this->getFileContent(($media->isAbsolute() ? '' : __DIR__ . '/../../../../') . $media->getPath())
                         ); ?>