Use Dir Basename
This commit is contained in:
parent
f53e96c299
commit
192806dd23
1 changed files with 3 additions and 2 deletions
|
@ -36,8 +36,9 @@ if (isset($_SESSION['files'])
|
|||
{
|
||||
$files = $_SESSION['files'];
|
||||
} else {
|
||||
$dirs = glob($imagedir.$dir.'/*' , GLOB_ONLYDIR);
|
||||
print_r($dirs);
|
||||
$tmpdirs = glob(Helpers::end_dir($imagedir.$dir).'*' , GLOB_ONLYDIR);
|
||||
foreach ($tmpdirs as $tmpdir):
|
||||
$dirs[] = basename($tmpdir);
|
||||
$rmdirs = $dirs;
|
||||
$rmdirs[] = '.';
|
||||
$rmdirs[] = '..';
|
||||
|
|
Loading…
Reference in a new issue