From 35694a636ef34dba5384e1a530b837208b9e55f9 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 1 Mar 2010 16:22:34 +0000 Subject: merge r5013 from branch 2.0 to trunk feature 1448 added: ability to set the upload directory (for pwg.images.add API method). Warning: due to risk on img src construction, the upload_dir must be relative to the Piwigo directory itself. git-svn-id: http://piwigo.org/svn/trunk@5014 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/config_default.inc.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/config_default.inc.php') diff --git a/include/config_default.inc.php b/include/config_default.inc.php index 972d89ea5..96f89661a 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -759,4 +759,7 @@ $conf['light_slideshow'] = true; // the local data directory is used to store data such as compiled templates // 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'; ?> -- cgit v1.2.3