Changeset 12738 for branches


Ignore:
Timestamp:
Dec 16, 2011, 10:10:00 AM (13 years ago)
Author:
plg
Message:

feature 2489 updated: photos added by synchronization can't update their "file" field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/include/ws_functions.inc.php

    r12729 r12738  
    24462446
    24472447  $info_columns = array(
    2448     'file',
    24492448    'name',
    24502449    'author',
     
    24822481  }
    24832482
     2483  if (isset($params['file']))
     2484  {
     2485    if (!empty($image_row['storage_category_id']))
     2486    {
     2487      new PwgError(500, '[ws_images_setInfo] updating "file" is forbidden on photos added by synchronization');
     2488      exit();
     2489    }
     2490
     2491    $update['file'] = $params['file'];
     2492  }
     2493
    24842494  if (count(array_keys($update)) > 0)
    24852495  {
Note: See TracChangeset for help on using the changeset viewer.