/* 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. */
$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';
}