Fix Template

This commit is contained in:
seiichiro 2022-01-11 16:28:21 +01:00
parent 75682cb2ba
commit 49ef8c3f95
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@ if (isset($_SESSION['files'])
$files = $_SESSION['files']; $files = $_SESSION['files'];
} else { } else {
$dirs = glob($imagedir.$dir.'/*' , GLOB_ONLYDIR); $dirs = glob($imagedir.$dir.'/*' , GLOB_ONLYDIR);
error_log('------'.$dirs.'-------');
$rmdirs = $dirs; $rmdirs = $dirs;
$rmdirs[] = '.'; $rmdirs[] = '.';
$rmdirs[] = '..'; $rmdirs[] = '..';

View file

@ -18,7 +18,7 @@
<div class="content"> <div class="content">
{% foreach($dirs as $d): %} {% foreach($dirs as $d): %}
<div class="multi-image"> <div class="multi-image">
<a href="index.php?d={{ $d }}&s=1&gs={{ $slice }}&p=1"> <a href="index.php?d={{ $d }}&s={{ $slice }}&p=1">
<img src="./img/folder.png" alt="{{ $d }}"/> <img src="./img/folder.png" alt="{{ $d }}"/>
</a> </a>
</div> </div>