aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
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 /include/functions.inc.php
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 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index cccd0ed80..a8c65f0e9 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -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
);