From 6f8a5f3d5456275ebb70d91041558094a1606213 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 20 Jan 2010 09:18:59 -0500 Subject: [PATCH] Shout: Fix global $shout object references --- shout/lib/Forms/DeviceForm.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shout/lib/Forms/DeviceForm.php b/shout/lib/Forms/DeviceForm.php index ad8f636f6..11d1307ea 100644 --- a/shout/lib/Forms/DeviceForm.php +++ b/shout/lib/Forms/DeviceForm.php @@ -45,7 +45,7 @@ class DeviceDetailsForm extends Horde_Form { public function execute() { - global $shout_devices; + global $shout; $action = $this->_vars->get('action'); $context = $this->_vars->get('context'); @@ -58,7 +58,7 @@ class DeviceDetailsForm extends Horde_Form { $devid = null; $password = null; } else { // $action must be 'edit' - $devices = $shout_devices->getDevices($context); + $devices = $shout->devices->getDevices($context); if (!isset($devices[$devid])) { // The device requested doesn't already exist. This can't // be a valid edit. @@ -78,7 +78,7 @@ class DeviceDetailsForm extends Horde_Form { 'password' => $password, ); - $shout_devices->saveDevice($context, $devid, $details); + $shout->devices->saveDevice($context, $devid, $details); } } @@ -102,9 +102,9 @@ class DeviceDeleteForm extends Horde_Form function execute() { - global $shout_devices; + global $shout; $context = $this->_vars->get('context'); $devid = $this->_vars->get('devid'); - $shout_devices->deleteDevice($context, $devid); + $shout->devices->deleteDevice($context, $devid); } } \ No newline at end of file -- 2.11.0