[svn r14309] Light fixes to user selected theme feature (see FS#2204)

skala
Yannick Warnier 18 years ago
parent 35eaf09a66
commit ebd7843181
  1. 2
      main/inc/lib/formvalidator/Element/select_theme.php
  2. 2
      main/inc/lib/main_api.lib.php

@ -39,7 +39,7 @@ class HTML_QuickForm_Select_Theme extends HTML_QuickForm_select
$this->_values = array();
foreach ($themes as $theme)
{
$this->addOption($theme,$theme);
$this->addOption((empty($theme)?'--':$theme),$theme);
}
}
}

@ -1826,7 +1826,7 @@ function api_get_languages()
function api_get_themes()
{
$cssdir = api_get_path(SYS_PATH).'main/css/';
$list = array();
$list = array('');
if (is_dir($cssdir))
{
$themes = scandir($cssdir);

Loading…
Cancel
Save