Skip to content

Commit

Permalink
Revert "Revert "Revert "Set the tasklist, if available."""
Browse files Browse the repository at this point in the history
Reverted the incorrect commit.
This reverts commit a068cd8.
  • Loading branch information
mrubinsk committed Aug 15, 2015
1 parent a068cd8 commit cb12da2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nag/lib/Api.php
Expand Up @@ -1170,15 +1170,14 @@ public function toggleCompletion($task_id, $tasklist_id)
* - activesync: Horde_ActiveSync_Message_Task.
* - raw: Nag_Task.
* @param array $options Any additional options for the exporter.
* @param string $tasklist The tasklist to look in. @since 4.3.0
*
* @return string The requested data.
*/
public function export($uid, $contentType, array $options = array(), $tasklist = null)
public function export($uid, $contentType, array $options = array())
{
$task = $GLOBALS['injector']
->getInstance('Nag_Factory_Driver')
->create($tasklist)
->create('')
->getByUID($uid);
if (!Nag::hasPermission($task->tasklist, Horde_Perms::READ)) {
throw new Horde_Exception_PermissionDenied();
Expand Down

0 comments on commit cb12da2

Please sign in to comment.