aboutsummaryrefslogtreecommitdiffstats
path: root/include/config_default.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-05-03 12:49:26 +0000
committerplegall <plg@piwigo.org>2010-05-03 12:49:26 +0000
commit0c8cebe04422aa47021f66acfcd2e3629ccaf7ae (patch)
tree0b7d50520a0a81900b1c33169a9410ace97f04de /include/config_default.inc.php
parent89384aa6b1b8808ec8ceda6b9673236383c94cfe (diff)
bug 1639 fixed: the upload form now correctly uses the $conf['upload_dir']
parameter (web API already use it). By default, the $conf['upload_dir'] is no longer dependent to PHPWG_ROOT_PATH because it becomes a real mess when admin/include/uploadify.php (called directly, not from an include) tries to perform an upload. Improvement: make clearer how $conf['upload_dir'] can be set (relative to the Piwigo installation directory + HTTP reachable) git-svn-id: http://piwigo.org/svn/trunk@6052 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/config_default.inc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 78d5fea54..b833f0bb5 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -761,8 +761,10 @@ $conf['light_slideshow'] = true;
// or other plugin variables etc
$conf['local_data_dir'] = dirname(dirname(__FILE__)).'/_data';
-// where should the API add photos?
-$conf['upload_dir'] = PHPWG_ROOT_PATH.'upload';
+// where should the API/UploadForm add photos? This path must be relative to
+// the Piwigo installation directory (but can be outside, as long as it's
+// reachable from your webserver).
+$conf['upload_dir'] = './upload';
// where should the user be guided when there is no photo in his gallery yet?
$conf['no_photo_yet_url'] = 'admin.php?page=photos_add';