Skip to content

Commit

Permalink
Fix #3753 no available themes
Browse files Browse the repository at this point in the history
This is the minimal fix, just a better message. It would be nice to handle this better in upgrades to 7.9 where SuiteP is disabled.
  • Loading branch information
pgorod committed Jun 22, 2017
1 parent 7b70b30 commit 3ae28fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/SugarTheme/SugarTheme.php
Expand Up @@ -1423,6 +1423,9 @@ public static function availableThemes()
$themelist[$themeobject->dirName] = $themeobject->name;
}
asort($themelist, SORT_STRING);
if (count($themelist)==0) {
$GLOBALS['log']->fatal("availableThemes() is returning empty array! Check disabled_themes in config.php and config_override.php");
}
return $themelist;
}

Expand Down

0 comments on commit 3ae28fd

Please sign in to comment.