Changeset 11118


Ignore:
Timestamp:
05/30/11 23:38:53 (8 years ago)
Author:
plg
Message:

merge r11117 from branch 2.2 to trunk

bug 2299 fixed: web API, method pwg.images.addSimple returns a clean error when parameter "image" is missing

File:
1 edited

Legend:

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

    r11116 r11118  
    14231423  { 
    14241424    return new PwgError(405, "This method requires HTTP POST"); 
     1425  } 
     1426 
     1427  if (!isset($_FILES['image'])) 
     1428  { 
     1429    return new PwgError(405, "The image (file) parameter is missing"); 
    14251430  } 
    14261431   
Note: See TracChangeset for help on using the changeset viewer.