mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-07 04:58:42 +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 : ?>
|
||||
<pre>
|
||||
<?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 = explode("\n", $output);
|
||||
foreach($output as $line) : ?><span><?= $line; ?></span><?php endforeach; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user