From 3799852c29859c07560642ffd9797f2db0656470 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 2 Dec 2009 23:24:35 +0100 Subject: [PATCH] Remove unused parameter. --- ansel/lib/Ajax/Imple/TagActions.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ansel/lib/Ajax/Imple/TagActions.php b/ansel/lib/Ajax/Imple/TagActions.php index 60da9d91b..05ac80e49 100644 --- a/ansel/lib/Ajax/Imple/TagActions.php +++ b/ansel/lib/Ajax/Imple/TagActions.php @@ -62,7 +62,6 @@ class Ansel_Ajax_Imple_TagActions extends Horde_Ajax_Imple_Base $resource = $GLOBALS['ansel_storage']->getImage($id); $parent = $GLOBALS['ansel_storage']->getGallery($resource->gallery); } - $owner = $parent->get('owner'); switch ($action) { case 'add': @@ -80,7 +79,7 @@ class Ansel_Ajax_Imple_TagActions extends Horde_Ajax_Imple_Base } return array('response' => 1, - 'message' => $this->_getTagHtml($newTags, $owner, + 'message' => $this->_getTagHtml($newTags, $parent->hasPermission(Horde_Auth::getAuth(), Horde_Perms::EDIT))); } break; @@ -96,14 +95,14 @@ class Ansel_Ajax_Imple_TagActions extends Horde_Ajax_Imple_Base } return array('response' => 1, - 'message' => $this->_getTagHtml($newTags, $owner, + 'message' => $this->_getTagHtml($newTags, $parent->hasPermission(Horde_Auth::getAuth(), Horde_Perms::EDIT))); break; } } - private function _getTagHtml($tags, $owner, $hasEdit) + private function _getTagHtml($tags, $hasEdit) { global $registry; $links = Ansel_Tags::getTagLinks($tags, 'add'); -- 2.11.0