projects
/
bizou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe20539
)
Some typo simplification for the getThumbTarget call
author
Marc MAURICE
<dooblempub@positon.org>
Thu, 30 Dec 2010 10:16:33 +0000
(11:16 +0100)
committer
Marc MAURICE
<dooblempub@positon.org>
Thu, 30 Dec 2010 10:16:33 +0000
(11:16 +0100)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
ff50603
..
8a69018
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-138,11
+138,7
@@
foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..')
{
$ext = strtolower(substr($file, -4));
if ($ext == ".jpg" or $ext == ".png") {
{
$ext = strtolower(substr($file, -4));
if ($ext == ".jpg" or $ext == ".png") {
- $link = dirname($scriptUrlPath)."/$realDir/$file";
- $link = getThumbTarget("$shortPath/$file");
-
- $imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => $link );
-
+ $imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => getThumbTarget("$shortPath/$file") );
} else {
$otherFiles[] = array( "name" => $file, "link" => dirname($scriptUrlPath)."/$realDir/$file" );
}
} else {
$otherFiles[] = array( "name" => $file, "link" => dirname($scriptUrlPath)."/$realDir/$file" );
}