Skip to content

Commit

Permalink
Allow passing a tasklist id to filter the ModSeq value.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 10, 2013
1 parent f182103 commit ab9048f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nag/lib/Api.php
Expand Up @@ -815,12 +815,18 @@ public function getActionTimestamp($uid, $action, $tasklist = null, $modSeq = fa
/**
* Return the largest modification sequence from the history backend.
*
* @param string $id Limit the check to this tasklist. @since 4.2.0
*
* @return integer The modseq.
* @since 4.1.1
*/
public function getHighestModSeq()
public function getHighestModSeq($id = null)
{
return $GLOBALS['injector']->getInstance('Horde_History')->getHighestModSeq('nag');
$parent = 'nag';
if (!empty($id)) {
$parent .= ':' . $id;
}
return $GLOBALS['injector']->getInstance('Horde_History')->getHighestModSeq($parent);
}

/**
Expand Down

0 comments on commit ab9048f

Please sign in to comment.