From 71a637d8c66ac8829c0e717e2babbcbae4baa4a5 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 15 Aug 2010 12:18:28 -0400 Subject: [PATCH] fix scope --- whups/lib/Whups.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whups/lib/Whups.php b/whups/lib/Whups.php index 596b7b933..ebbe76d06 100644 --- a/whups/lib/Whups.php +++ b/whups/lib/Whups.php @@ -261,7 +261,7 @@ class Whups { $id = preg_replace('|\D|', '', Horde_Util::getFormData('id')); if (!$id) { $GLOBALS['notification']->push(_("Invalid Ticket Id"), 'horde.error'); - Horde::applicationUrl($prefs->getValue('whups_default_view') . '.php', true) + Horde::applicationUrl($GLOBALS['prefs']->getValue('whups_default_view') . '.php', true) ->redirect(); } @@ -273,7 +273,7 @@ class Whups { } else { $GLOBALS['notification']->push($ticket->getMessage(), 'horde.error'); } - Horde::applicationUrl($prefs->getValue('whups_default_view') . '.php', true) + Horde::applicationUrl($GLOBALS['prefs']->getValue('whups_default_view') . '.php', true) ->redirect(); } -- 2.11.0