mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-15 20:48:00 +00:00
added error reason to api
This commit is contained in:
@@ -45,4 +45,4 @@ else if($_REQUEST['geturlinfo'])
|
|||||||
else if($_REQUEST['a']=='oembed')
|
else if($_REQUEST['a']=='oembed')
|
||||||
echo json_encode($pm->oembed($_REQUEST['url'],$_REQUEST['t']));
|
echo json_encode($pm->oembed($_REQUEST['url'],$_REQUEST['t']));
|
||||||
else
|
else
|
||||||
echo json_encode(array('status'=>'ERR'));
|
echo json_encode(array('status'=>'ERR','reason'=>'NO_VALID_COMMAND'));
|
||||||
|
|||||||
Reference in New Issue
Block a user