From 5dca66c7d1d6ff04f313d371ea2bf45284d20862 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 13 Dec 2011 13:56:19 +0000 Subject: 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 --- include/ws_functions.inc.php | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3