From 1fc7499b9c2ab480c7e1b5555f83dd49b00ee7f0 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Sun, 28 Feb 2010 17:20:45 -0500 Subject: [PATCH] Shout: Fix call semantics for Ajax_Application --- shout/lib/Ajax/Application.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/shout/lib/Ajax/Application.php b/shout/lib/Ajax/Application.php index f8b93d5b9..054bd42a5 100644 --- a/shout/lib/Ajax/Application.php +++ b/shout/lib/Ajax/Application.php @@ -29,12 +29,12 @@ class Shout_Ajax_Application extends Horde_Ajax_Application_Base /** * TODO */ - public function addDestination($vars) + public function addDestination() { + $vars = $this->_vars; $shout = Horde_Registry::appInit('shout'); $context = $_SESSION['shout']['context']; try { - // FIXME: Use Form? $shout = $GLOBALS['registry']->getApiInstance('shout', 'application'); $shout->extensions->addDestination($context, $vars->extension, $vars->type, $vars->destination); @@ -49,8 +49,9 @@ class Shout_Ajax_Application extends Horde_Ajax_Application_Base /** * TODO */ - public function deleteDestination($vars) + public function deleteDestination() { + $vars = $this->_vars; $shout = Horde_Registry::appInit('shout'); $context = $_SESSION['shout']['context']; try { @@ -69,10 +70,10 @@ class Shout_Ajax_Application extends Horde_Ajax_Application_Base /** * TODO */ - public function getDestinations($vars) + public function getDestinations() { + $vars = $this->_vars; $shout = Horde_Registry::appInit('shout'); - Horde::logMessage(print_r($vars, true), __FILE__, __LINE__, PEAR_LOG_ERR); $context = $_SESSION['shout']['context']; try { return $shout->extensions->getExtensions($context); -- 2.11.0