Some typo simplification for the getThumbTarget call
This commit is contained in:
parent
fe20539226
commit
8ed0bc08f5
1 changed files with 1 additions and 5 deletions
|
@ -138,11 +138,7 @@ foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..')
|
||||||
{
|
{
|
||||||
$ext = strtolower(substr($file, -4));
|
$ext = strtolower(substr($file, -4));
|
||||||
if ($ext == ".jpg" or $ext == ".png") {
|
if ($ext == ".jpg" or $ext == ".png") {
|
||||||
$link = dirname($scriptUrlPath)."/$realDir/$file";
|
$imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => getThumbTarget("$shortPath/$file") );
|
||||||
$link = getThumbTarget("$shortPath/$file");
|
|
||||||
|
|
||||||
$imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => $link );
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$otherFiles[] = array( "name" => $file, "link" => dirname($scriptUrlPath)."/$realDir/$file" );
|
$otherFiles[] = array( "name" => $file, "link" => dirname($scriptUrlPath)."/$realDir/$file" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue