From cb12da2353e8d40106dea09d7fed219487fb9c43 Mon Sep 17 00:00:00 2001 From: Michael J Rubinsky Date: Sat, 15 Aug 2015 10:33:21 -0400 Subject: [PATCH] Revert "Revert "Revert "Set the tasklist, if available.""" Reverted the incorrect commit. This reverts commit a068cd8953c512b0267700e822cc00641d0ff75c. --- nag/lib/Api.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nag/lib/Api.php b/nag/lib/Api.php index 7b26f9ad659..732aed997eb 100644 --- a/nag/lib/Api.php +++ b/nag/lib/Api.php @@ -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();