Fixing admin scheme-change in frio

This commit is contained in:
Philipp Holzer 2019-02-24 15:40:05 +01:00
parent df5ea1fab0
commit da4fc0411e
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5

View File

@ -17,13 +17,16 @@
* 'version' => Scheme version * 'version' => Scheme version
* 'overwrites' => Variables which overwriting custom settings * 'overwrites' => Variables which overwriting custom settings
*/ */
use Friendica\Core\PConfig; use Friendica\Core\PConfig;
function get_scheme_info($scheme) function get_scheme_info($scheme)
{ {
$theme = \get_app()->getCurrentTheme(); $theme = \get_app()->getCurrentTheme();
$themepath = 'view/theme/' . $theme . '/'; $themepath = 'view/theme/' . $theme . '/';
if (!isset($scheme)) {
$scheme = PConfig::get(local_user(), 'frio', 'scheme', PConfig::get(local_user(), 'frio', 'scheme')); $scheme = PConfig::get(local_user(), 'frio', 'scheme', PConfig::get(local_user(), 'frio', 'scheme'));
}
$info = [ $info = [
'name' => $scheme, 'name' => $scheme,