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())
                         ); ?>