# HG changeset patch # User Dan # Date 1242482220 14400 # Node ID f0a844799a0c4e3a84ec4d1c394ab83d421c30de # Parent 178d22e361d68f2370dc0ce9b0553b502a20612b Fixed selection of "default" in admin CP diff -r 178d22e361d6 -r f0a844799a0c plugins/EnaniumBackgrounds.php --- a/plugins/EnaniumBackgrounds.php Sun May 10 13:13:04 2009 -0400 +++ b/plugins/EnaniumBackgrounds.php Sat May 16 09:57:00 2009 -0400 @@ -16,7 +16,7 @@ $plugins->attachHook('acl_rule_init', '$this->addAdminNode("adm_cat_appearance", "enaniumbg_acppage", "EnaniumConfig", scriptPath . "/plugins/enaniumbg/icons/garden.png");'); $ebg_system_images = array('default', 'aqua', 'blinds', 'dune', 'freshflower', 'garden', 'greenmeadow', 'ladybird', 'raindrops', 'storm', 'twowings', 'wood', 'yellowflower'); -$ebg_images = array(); +$ebg_images = array('default'); $ebg_outsiders = array(); if ( $dr = @opendir(ENANO_ROOT . '/plugins/enaniumbg') ) @@ -147,7 +147,7 @@ if ( isset($_POST['enanium_bg']) ) { $bg = $_POST['enanium_bg']; - if ( file_exists(ENANO_ROOT . "/plugins/enaniumbg/$bg.jpg") ) + if ( file_exists(ENANO_ROOT . "/plugins/enaniumbg/$bg.jpg") || $bg === 'default' ) setConfig('enanium_bg', $bg); $val = isset($_POST['show_switcher']) ? '1' : '0';