Ignore:
Timestamp:
Jun 9, 2010, 11:40:34 AM (14 years ago)
Author:
nikrou
Message:

Bug 1715 fixed : SQLite: Add photos fail
must use pwg_db_* functions instead of mysql_* ones
merge from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/admin/include/functions_upload.inc.php

    r6384 r6499  
    2727
    2828  // current date
    29   list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
     29  list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    3030  list($year, $month, $day) = preg_split('/[^\d]/', $dbnow, 4);
    3131 
     
    121121    );
    122122 
    123   $image_id = mysql_insert_id();
     123  $image_id = pwg_db_insert_id();
    124124
    125125  if (isset($categories) and count($categories) > 0)
Note: See TracChangeset for help on using the changeset viewer.