mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-28 16:58:39 +00:00
simplify path handling
This commit is contained in:
parent
81ea624099
commit
0ae0a5d454
|
|
@ -126,7 +126,7 @@ echo $this->getData('nav')->render();
|
|||
|
||||
if ($this->isImageFile($media, $path)) : ?>
|
||||
<div class="h-overflow centerText">
|
||||
<img src="<?= $media->isAbsolute() ? $this->printHtml($path) : $this->printHtml($this->request->getUri()->getBase() . $path); ?>">
|
||||
<img src="<?= $media->getPath(); ?>">
|
||||
</div>
|
||||
<?php elseif ($this->isTextFile($media, $path)) : ?>
|
||||
<!-- if markdown show markdown editor, if image show image editor, if text file show textarea only on edit -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user