also use the default theme if the theme is set to an empty string in the config.php

remotes/origin/stable6
Björn Schießle 12 years ago
parent 7f6a9e8fef
commit 8406d3f7b1
  1. 4
      lib/util.php

@ -819,9 +819,9 @@ class OC_Util {
* @return string the theme
*/
public static function getTheme() {
$theme = OC_Config::getValue("theme");
$theme = OC_Config::getValue("theme", '');
if(is_null($theme)) {
if($theme === '') {
if(is_dir(OC::$SERVERROOT . '/themes/default')) {
$theme = 'default';

Loading…
Cancel
Save