aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2009-08-02 13:04:17 +0000
committernikrou <nikrou@piwigo.org>2009-08-02 13:04:17 +0000
commit513b3e0bd61b094a1535183f4b734a38b6ddf27f (patch)
tree40da33b44a71342278e2de737ffd7f459ca9f325 /admin
parentd8144df868178e5e3f48a1527e3998a24fbd4c03 (diff)
New feature : configuration option for thumbnail directory
git-svn-id: http://piwigo.org/svn/trunk@3720 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/thumbnail.php2
-rw-r--r--admin/upload.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php
index 3034e8478..46e42c33e 100644
--- a/admin/thumbnail.php
+++ b/admin/thumbnail.php
@@ -204,7 +204,7 @@ while ( $row=mysql_fetch_assoc($result) )
// searching the element
$filename_wo_ext = get_filename_wo_extension($filename);
$tn_ext = '';
- $base_test = $dirname.'/thumbnail/';
+ $base_test = $dirname.'/'.$conf['dir_thumbnail'].'/';
$base_test.= $conf['prefix_thumbnail'].$filename_wo_ext.'.';
foreach ($conf['picture_ext'] as $ext)
{
diff --git a/admin/upload.php b/admin/upload.php
index b871f6677..a8b88ccf2 100644
--- a/admin/upload.php
+++ b/admin/upload.php
@@ -187,7 +187,7 @@ while ( $row = mysql_fetch_array( $result ) )
$thumbnail.= get_filename_wo_extension( $row['file'] );
$thumbnail.= '.'.$row['tn_ext'];
$url = $cat_names[$row['storage_category_id']]['dir'];
- $url.= 'thumbnail/'.$thumbnail;
+ $url.= $conf['dir_thumbnail'].'/'.$thumbnail;
$tpl_var['thumbnail'] =
array(