From c35d0e0fd2596fcaa8f47d1051c44806b42d3e2b Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 21 Aug 2010 23:30:27 -0400 Subject: [PATCH] Remove unnecessary global --- ansel/lib/Block/cloud.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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; } - } -- 2.11.0