diff options
author | nikrou <nikrou@piwigo.org> | 2010-06-09 09:40:34 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-06-09 09:40:34 +0000 |
commit | 47847a2dd49debdf39ded99dd42d1c716aec63a8 (patch) | |
tree | 099c68795820e952e5a5a1539af1dba4ae3d5bad /admin/include | |
parent | de5ded6fa218ad0f71b491958c76263036f11937 (diff) |
Bug 1715 fixed : SQLite: Add photos fail
must use pwg_db_* functions instead of mysql_* ones
merge from trunk
git-svn-id: http://piwigo.org/svn/branches/2.1@6499 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/functions_upload.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php index 438f30bcd..c00e73b93 100644 --- a/admin/include/functions_upload.inc.php +++ b/admin/include/functions_upload.inc.php @@ -26,7 +26,7 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie global $conf; // current date - list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); + list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();')); list($year, $month, $day) = preg_split('/[^\d]/', $dbnow, 4); // upload directory hierarchy @@ -120,7 +120,7 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie array($insert) ); - $image_id = mysql_insert_id(); + $image_id = pwg_db_insert_id(); if (isset($categories) and count($categories) > 0) { |