mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
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:
+1
-1
@@ -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
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user