Skip to content

Commit

Permalink
add messagesCount and use embargo in update call, not internal sendstart
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Nov 2, 2015
1 parent 4da2d53 commit a79b8b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/restapi/includes/messages.php
Expand Up @@ -17,6 +17,12 @@ public static function messageGet($id = 0)
}
Common::select('Message', 'SELECT * FROM '.$GLOBALS['table_prefix'].'message WHERE id='.$id.';', true);
}

public static function messagesCount()
{
Common::select('Messages', 'SELECT count(id) as total FROM '.$GLOBALS['table_prefix'].'message',true);
}


public static function messagesGet()
{
Expand Down Expand Up @@ -113,7 +119,7 @@ public static function messageUpdate($id = 0)
$stmt->bindParam('status', $_REQUEST['status']);
$stmt->bindParam('sendformat', $_REQUEST['sendformat']);
$stmt->bindParam('template', $_REQUEST['template']);
$stmt->bindParam('sendstart', $_REQUEST['sendstart']);
$stmt->bindParam('embargo', $_REQUEST['embargo']);
$stmt->bindParam('rsstemplate', $_REQUEST['rsstemplate']);
$stmt->bindParam('owner', $_REQUEST['owner']);
$stmt->bindParam('htmlformatted', $_REQUEST['htmlformatted']);
Expand Down

0 comments on commit a79b8b0

Please sign in to comment.