Ignore:
Timestamp:
Sep 18, 2010 12:32:00 PM (3 years ago)
Author:
thomasb
Message:

Prevent from saving a non-existing skin path in user prefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/settings/save_prefs.inc

    r3840 r3974  
    117117    } 
    118118 
    119     // switch skin 
    120     $OUTPUT->set_skin($a_user_prefs['skin']); 
     119    // switch skin (if valid, otherwise unset the pref and fall back to default) 
     120    if (!$OUTPUT->set_skin($a_user_prefs['skin'])) 
     121      unset($a_user_prefs['skin']); 
    121122 
    122123    // force min size 
Note: See TracChangeset for help on using the changeset viewer.