Ignore:
Timestamp:
Jan 9, 2009, 12:33:35 AM (15 years ago)
Author:
plg
Message:

merge r3064 from branch 2.0 to trunk

bug 912 fixed: we need an extra original_sum to pwg.images.add API method to
check photo existence. Using the file_sum was a bad idea.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r3049 r3065  
    910910    COUNT(*) AS counter
    911911  FROM '.IMAGES_TABLE.'
    912   WHERE md5sum = \''.$params['file_sum'].'\'
     912  WHERE md5sum = \''.$params['original_sum'].'\'
    913913;';
    914914  list($counter) = mysql_fetch_row(pwg_query($query));
     
    10891089    'width' => $width,
    10901090    'height' => $height,
    1091     'md5sum' => $params['file_sum'],
     1091    'md5sum' => $params['original_sum'],
    10921092    );
    10931093
Note: See TracChangeset for help on using the changeset viewer.