really removed the parent folder code
This commit is contained in:
parent
bfc7c4e9c7
commit
cc49f9cbf0
1 changed files with 2 additions and 6 deletions
|
@ -90,11 +90,7 @@ $realDir = "images$shortPath";
|
||||||
|
|
||||||
foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..')
|
foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..')
|
||||||
{
|
{
|
||||||
if ($file == '..')
|
if (is_dir("$realDir/$file"))
|
||||||
{
|
|
||||||
echo "<div><a href=\"$scriptUrlPath".dirname($shortPath)."/\">..</a></div>\n";
|
|
||||||
}
|
|
||||||
elseif (is_dir("$realDir/$file"))
|
|
||||||
{
|
{
|
||||||
$folders[] = array( "name" => $file, "link" => "$scriptUrlPath$shortPath/$file", "preview" => getAlbumPreview("$realDir/$file") );
|
$folders[] = array( "name" => $file, "link" => "$scriptUrlPath$shortPath/$file", "preview" => getAlbumPreview("$realDir/$file") );
|
||||||
}
|
}
|
||||||
|
@ -116,7 +112,7 @@ else
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ($parentLink !== '') { ?>
|
<?php if ($parentLink !== '') { ?>
|
||||||
<div><a href="<?php echo $parentLink ?>">^</a></div>
|
<div id="parentfolder"><a href="<?php echo $parentLink ?>">^</a></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php foreach($folders as $folder) { ?>
|
<?php foreach($folders as $folder) { ?>
|
||||||
|
|
Loading…
Reference in a new issue