From: Jan Schneider Date: Wed, 2 Dec 2009 22:24:35 +0000 (+0100) Subject: Remove unused parameter. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3799852c29859c07560642ffd9797f2db0656470;p=horde.git Remove unused parameter. --- 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');