Issue 4956: Don't fail during installation because of a missing theme configuration
This commit is contained in:
parent
139f7cdc41
commit
9d0ed1a2af
1 changed files with 4 additions and 0 deletions
|
@ -1091,6 +1091,10 @@ class App
|
||||||
*/
|
*/
|
||||||
public function getCurrentTheme()
|
public function getCurrentTheme()
|
||||||
{
|
{
|
||||||
|
if ($this->mode == App::MODE_INSTALL) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
if (!$this->current_theme) {
|
if (!$this->current_theme) {
|
||||||
$this->computeCurrentTheme();
|
$this->computeCurrentTheme();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue