Merge pull request #5123 from rabuzarus/20180526_-_load_correct_theme
Bugfix: compute the current theme each time we want to know which theme is beeing used
This commit is contained in:
commit
4aa46272a9
|
@ -9,6 +9,8 @@ use Friendica\Core\Config;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\PConfig;
|
use Friendica\Core\PConfig;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
|
use Friendica\Database\DBM;
|
||||||
|
use dba;
|
||||||
|
|
||||||
use Detection\MobileDetect;
|
use Detection\MobileDetect;
|
||||||
|
|
||||||
|
@ -1095,9 +1097,10 @@ class App
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->current_theme) {
|
//// @TODO Compute the current theme only once (this behavior has
|
||||||
$this->computeCurrentTheme();
|
/// already been implemented, but it didn't work well -
|
||||||
}
|
/// https://github.com/friendica/friendica/issues/5092)
|
||||||
|
$this->computeCurrentTheme();
|
||||||
|
|
||||||
return $this->current_theme;
|
return $this->current_theme;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user