From: Chuck Hagenbuch Date: Sun, 22 Aug 2010 03:30:27 +0000 (-0400) Subject: Remove unnecessary global X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c35d0e0fd2596fcaa8f47d1051c44806b42d3e2b;p=horde.git Remove unnecessary global --- diff --git a/ansel/lib/Block/cloud.php b/ansel/lib/Block/cloud.php index f5c669e6e..44e42b411 100644 --- a/ansel/lib/Block/cloud.php +++ b/ansel/lib/Block/cloud.php @@ -27,11 +27,10 @@ class Horde_Block_ansel_cloud extends Horde_Block */ protected function _params() { - $params = array('count' => array( - 'name' => _("Number of tags to display"), - 'type' => 'int', - 'default' => 20)); - return $params; + return array('count' => array( + 'name' => _("Number of tags to display"), + 'type' => 'int', + 'default' => 20)); } /** @@ -44,14 +43,10 @@ class Horde_Block_ansel_cloud extends Horde_Block } /** - * - * @global Horde_Registry $registry * @return string */ protected function _content() { - global $registry; - /* Get the tags */ $tags = $GLOBALS['injector']->getInstance('Ansel_Tagger')->getCloud(null, $this->_params['count']); if (count($tags)) { @@ -67,5 +62,4 @@ class Horde_Block_ansel_cloud extends Horde_Block } return $html; } - }