mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +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:
@@ -256,7 +256,7 @@ function mkgetdir($dir, $flags=MKGETDIR_DEFAULT)
|
||||
*/
|
||||
function mkget_thumbnail_dir($dirname, &$errors)
|
||||
{
|
||||
$tndir = $dirname.'/thumbnail';
|
||||
$tndir = $dirname.'/'.$conf['dir_thumbnail'];
|
||||
if (! mkgetdir($tndir, MKGETDIR_NONE) )
|
||||
{
|
||||
array_push($errors,
|
||||
@@ -865,7 +865,7 @@ function get_thumbnail_location($element_info)
|
||||
{
|
||||
$path = substr_replace(
|
||||
get_filename_wo_extension($element_info['path']),
|
||||
'/thumbnail/'.$conf['prefix_thumbnail'],
|
||||
'/'.$conf['dir_thumbnail'].'/'.$conf['prefix_thumbnail'],
|
||||
strrpos($element_info['path'],'/'),
|
||||
1
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user