From: Michael M Slusarz Date: Thu, 15 Jul 2010 17:14:24 +0000 (-0600) Subject: No need to use getFormData(); just use $vars. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=04c407762637309ed89a0ba7e591b15c8da9b5c1;p=horde.git No need to use getFormData(); just use $vars. --- 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'; }