projects
/
phpfspot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue 76 & 77, note in UPGRADE file that the variable now
[phpfspot.git]
/
phpfspot.class.php
diff --git
a/phpfspot.class.php
b/phpfspot.class.php
index 50ab45e139423f31c34f08d6c414af13062ac91c..cc1c8736aafda15ea11ca47c34985a3e52d8181c 100644
(file)
--- a/
phpfspot.class.php
+++ b/
phpfspot.class.php
@@
-1166,7
+1166,7
@@
class PHPFSPOT {
foreach($resolutions as $resolution) {
$thumb_sub_path = substr($file_md5, 0, 2);
foreach($resolutions as $resolution) {
$thumb_sub_path = substr($file_md5, 0, 2);
- $thumb_path = $this->cfg->
base_path ."/thumbs
/". $thumb_sub_path ."/". $resolution ."_". $file_md5;
+ $thumb_path = $this->cfg->
thumb_path ."
/". $thumb_sub_path ."/". $resolution ."_". $file_md5;
if(!file_exists(dirname($thumb_path))) {
mkdir(dirname($thumb_path), 0755);
if(!file_exists(dirname($thumb_path))) {
mkdir(dirname($thumb_path), 0755);
@@
-1910,8
+1910,8
@@
class PHPFSPOT {
public function get_thumb_path($width, $photo)
{
$sub_path = substr($this->getMD5($photo), 0, 2);
public function get_thumb_path($width, $photo)
{
$sub_path = substr($this->getMD5($photo), 0, 2);
- return $this->cfg->
base
_path
- . "/
thumbs/
"
+ return $this->cfg->
thumb
_path
+ . "/"
. $sub_path
. "/"
. $width
. $sub_path
. "/"
. $width