Changeset 6499


Ignore:
Timestamp:
06/09/10 11:40:34 (8 years ago)
Author:
nikrou
Message:

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

Location:
branches/2.1/admin
Files:
2 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) 
  • branches/2.1/admin/photos_add_direct.php

    r6364 r6499  
    238238  WHERE id = '.$image_id.' 
    239239;'; 
    240     $image_infos = mysql_fetch_assoc(pwg_query($query)); 
     240    $image_infos = pwg_db_fetch_assoc(pwg_query($query)); 
    241241 
    242242    $thumbnail['file'] = $image_infos['file']; 
     
    298298  WHERE category_id = '.$category_id.' 
    299299;'; 
    300       list($count) = mysql_fetch_row(pwg_query($query)); 
     300      list($count) = pwg_db_fetch_row(pwg_query($query)); 
    301301      $category_name = get_cat_display_name_from_id($category_id, 'admin.php?page=cat_modify&cat_id='); 
    302302       
Note: See TracChangeset for help on using the changeset viewer.