mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 20:29:58 +03:00
Bug 1715 fixed : SQLite: Add photos fail
must use pwg_db_* functions instead of mysql_* ones git-svn-id: http://piwigo.org/svn/trunk@6498 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
6b0aebc1b5
commit
ad676ee2c8
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue