From 04c407762637309ed89a0ba7e591b15c8da9b5c1 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 15 Jul 2010 11:14:24 -0600 Subject: [PATCH] No need to use getFormData(); just use $vars. --- framework/Core/lib/Horde/Core/Prefs/Ui.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/framework/Core/lib/Horde/Core/Prefs/Ui.php b/framework/Core/lib/Horde/Core/Prefs/Ui.php index 3e2d1b47a..a8aea5f09 100644 --- a/framework/Core/lib/Horde/Core/Prefs/Ui.php +++ b/framework/Core/lib/Horde/Core/Prefs/Ui.php @@ -521,10 +521,9 @@ class Horde_Core_Prefs_Ui /* Get the menu output before we start to output the page. * Again, this will catch any javascript inserted into the page. */ - if (!Horde_Util::getFormData('ajaxui')) { - if ($registry->hasAppMethod($this->app, 'prefsMenu')) { - $menu = $registry->callAppMethod($this->app, 'prefsMenu', array('args' => array($this))); - } + if (!$this->vars->ajaxui && + $registry->hasAppMethod($this->app, 'prefsMenu')) { + $menu = $registry->callAppMethod($this->app, 'prefsMenu', array('args' => array($this))); } /* Get list of accessible applications. */ @@ -541,7 +540,7 @@ class Horde_Core_Prefs_Ui $GLOBALS['bodyId'] = 'services_prefs'; require $h_templates . '/common-header.inc'; - if (!Horde_Util::getFormData('ajaxui')) { + if (!$this->vars->ajaxui) { require $h_templates . '/menu/menu.inc'; } -- 2.11.0