From: Michael M Slusarz Date: Tue, 25 Jan 2011 22:38:35 +0000 (-0700) Subject: getChangeablePrefs() defaults to the current prefs UI group X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f50de55fce7ba7f2f853084c44bdc3265dd095e5;p=horde.git getChangeablePrefs() defaults to the current prefs UI group --- diff --git a/framework/Core/lib/Horde/Core/Prefs/Ui.php b/framework/Core/lib/Horde/Core/Prefs/Ui.php index 54777c061..246742f0f 100644 --- a/framework/Core/lib/Horde/Core/Prefs/Ui.php +++ b/framework/Core/lib/Horde/Core/Prefs/Ui.php @@ -149,10 +149,18 @@ class Horde_Core_Prefs_Ui * * @return array The list of changeable prefs. */ - public function getChangeablePrefs($group) + public function getChangeablePrefs($group = null) { $prefs = array(); + if (is_null($group)) { + if (!$this->group) { + return $prefs; + } + + $group = $this->group; + } + if (!empty($this->prefGroups[$group]['members'])) { foreach ($this->prefGroups[$group]['members'] as $pref) { /* Changeable pref if: