New feature : configuration option for thumbnail directory

git-svn-id: http://piwigo.org/svn/trunk@3720 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou
2009-08-02 13:04:17 +00:00
parent d8144df868
commit 513b3e0bd6
5 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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(