Merge pull request #6747 from nupplaphil/issue/6677-frio_admin
Fixing frio theme customization for admin
This commit is contained in:
commit
8adc761da0
1 changed files with 4 additions and 1 deletions
|
@ -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 (empty($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,
|
||||||
|
|
Loading…
Reference in a new issue