X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fstyle.php;h=5fada9dd4802dc51d0e19aa17aebdbf6e4deea46;hb=634edc183b89c1ff12c9c887945fb4c6e4fd3e29;hp=e0f65960f6886e620feafd8a4aad89c019daec15;hpb=71ec84f6dc83f753fe80170cfdfd32d202850d90;p=friendica.git diff --git a/view/theme/frio/style.php b/view/theme/frio/style.php index e0f65960f6..5fada9dd48 100644 --- a/view/theme/frio/style.php +++ b/view/theme/frio/style.php @@ -2,9 +2,9 @@ /** * @file view/theme/frio/style.php */ + use Friendica\Core\Config; use Friendica\Core\PConfig; -use Friendica\Model\Profile; require_once 'view/theme/frio/php/PHPColors/Color.php'; @@ -14,7 +14,7 @@ $scheme_modified = 0; if ($a->module !== 'install') { // Get the UID of the profile owner. - $uid = Profile::getThemeUid(); + $uid = defaults($_REQUEST, 'puid', 0); if ($uid) { PConfig::load($uid, 'frio'); @@ -63,7 +63,7 @@ if ($a->module !== 'install') { // Setting $scheme to '' wasn't working for some reason, so we'll check it's // not --- like the mobile theme does instead. // Allow layouts to over-ride the scheme. -if (x($_REQUEST, 'scheme')) { +if (!empty($_REQUEST['scheme'])) { $scheme = $_REQUEST['scheme']; }