Add dedicated route for user preferences

This commit is contained in:
Romain Neutron
2012-02-09 16:57:16 +01:00
parent 6dea14b12e
commit ba91eddb39
7 changed files with 129 additions and 76 deletions

View File

@@ -1487,9 +1487,10 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
{
$this->load_preferences();
if (isset($this->_prefs[$prop]) && $this->_prefs[$prop] === $value)
return $value;
{
return $this->_prefs[$prop];
}
$ok = true;
if (isset(self::$available_values[$prop]))