roundcubemail/program/lib/Roundcube/rcube_config.php
public function set_user_prefs($prefs)
    {
        $prefs = $this->fix_legacy_props($prefs);

        // Honor the dont_override setting for any existing user preferences
        $dont_override = $this->get('dont_override');
        if (is_array($dont_override) && !empty($dont_override)) {
            foreach ($dont_override as $key) {
                unset($prefs[$key]);
            }
        }

        // larry is the new default skin :-)
        if ($prefs['skin'] == 'default') {
            $prefs['skin'] = self::DEFAULT_SKIN;
        }

        $this->userprefs = $prefs;
        $this->prop      = array_merge($this->prop, $prefs);
    }
public function set_user_prefs($prefs)
    {
        $prefs = $this->fix_legacy_props($prefs);

        // Honor the dont_override setting for any existing user preferences
        $dont_override = $this->get('dont_override');
        if (is_array($dont_override) && !empty($dont_override)) {
            foreach ($dont_override as $key) {
                unset($prefs[$key]);
            }
        }

        // larry is the new default skin :-)
        if ($prefs['skin'] == 'default') {
            $prefs['skin'] = self::DEFAULT_SKIN;
        }

        $this->userprefs = $prefs;
        $this->prop      = array_merge($this->prop, $prefs);
    }
public function set_user_prefs ( $ prefs ) { $ prefs = $ this -> fix_legacy_props ( $ prefs ) ; // Honor the dont_override setting for any existing user preferences $ dont_override = $ this -> get ( 'dont_override' ) ; if ( is_array ( $ dont_override ) && ! empty ( $ dont_override ) ) { foreach ( $ dont_override as $ key ) { unset ( $ prefs [ $ key ] ) ; } } // larry is the new default skin :-) if ( $ prefs [ 'skin' ] == 'default' ) { $ prefs [ 'skin' ] = self :: DEFAULT_SKIN ; } $ this -> userprefs = $ prefs ; $ this -> prop = array_merge ( $ this -> prop , $ prefs ) ; }
Merge the given prefs over the current config
and make sure that they survive further merging.

@param array $prefs Hash array with user prefs
Merge the given prefs over the current config and make sure that they survive further merging .