From: Michael M Slusarz Date: Sat, 4 Sep 2010 06:24:11 +0000 (-0600) Subject: Don't show global options item if editing horde options X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bca4bb776d6645ae465c404dd7c57694ae703c16;p=horde.git Don't show global options item if editing horde options --- diff --git a/framework/Core/lib/Horde/Core/Prefs/Ui.php b/framework/Core/lib/Horde/Core/Prefs/Ui.php index 054884a47..9336d8a9c 100644 --- a/framework/Core/lib/Horde/Core/Prefs/Ui.php +++ b/framework/Core/lib/Horde/Core/Prefs/Ui.php @@ -568,7 +568,7 @@ class Horde_Core_Prefs_Ui /* Show the current application and a form for switching * applications. */ $t = clone $base_ui; - $t->set('horde', !empty($apps['horde'])); + $t->set('horde', !empty($apps['horde']) && ($this->app != 'horde')); unset($apps['horde'], $apps[$this->app]); $tmp = array(); foreach ($apps as $key => $val) { diff --git a/horde/templates/prefs/app.html b/horde/templates/prefs/app.html index 094a719e8..f4c09ec2d 100644 --- a/horde/templates/prefs/app.html +++ b/horde/templates/prefs/app.html @@ -5,8 +5,8 @@