Merge pull request #6747 from nupplaphil/issue/6677-frio_admin

Fixing frio theme customization for admin
This commit is contained in:
Hypolite Petovan 2019-02-24 10:30:37 -05:00 committed by GitHub
commit 8adc761da0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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