aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-12-13 13:56:19 +0000
committerplegall <plg@piwigo.org>2011-12-13 13:56:19 +0000
commit5dca66c7d1d6ff04f313d371ea2bf45284d20862 (patch)
tree88d5130497615e51a3d08dc23ce2483de8865f70
parent094bb7e6827ff7c685dbdca786c394be81f2bdc6 (diff)
feature 2531: bug fixed, need to be sure functions_upload.inc.php is loaded before using add_uploaded_file()
git-svn-id: http://piwigo.org/svn/branches/2.3@12723 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/ws_functions.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 3022072e1..3d5d823c3 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -1664,6 +1664,8 @@ SELECT
merge_chunks($file_path, $params['original_sum'], $type);
chmod($file_path, 0644);
+
+ include_once(PHPWG_ROOT_PATH.'admin/include/functions_upload.inc.php');
$image_id = add_uploaded_file(
$file_path,