Merge pull request #5091 from annando/issue-4956

Don't fail during installation because of a missing theme configuration
This commit is contained in:
Tobias Diekershoff 2018-05-20 08:50:28 +02:00 committed by GitHub
commit d78b1f5191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1091,6 +1091,10 @@ class App
*/
public function getCurrentTheme()
{
if ($this->mode == App::MODE_INSTALL) {
return '';
}
if (!$this->current_theme) {
$this->computeCurrentTheme();
}