mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-16 17:28:41 +00:00
Fix media path
This commit is contained in:
parent
b7ceb750ec
commit
9ff1c20c78
|
|
@ -43,7 +43,7 @@ echo $this->getData('nav')->render();
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<pre>
|
<pre>
|
||||||
<?php
|
<?php
|
||||||
$output = htmlspecialchars(file_get_contents(ROOT_PATH . '/' . $media->getPath()));
|
$output = htmlspecialchars(file_get_contents(__DIR__ . '/../../../../' . $media->getPath()));
|
||||||
$output = str_replace(["\r\n", "\r"], "\n", $output);
|
$output = str_replace(["\r\n", "\r"], "\n", $output);
|
||||||
$output = explode("\n", $output);
|
$output = explode("\n", $output);
|
||||||
foreach($output as $line) : ?><span><?= $line; ?></span><?php endforeach; ?>
|
foreach($output as $line) : ?><span><?= $line; ?></span><?php endforeach; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user