X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fstyle.php;h=d8bffa9c645c4ff048b0b329a2927f7e32d2d4e9;hb=deaecfaf790b4e7942dac753efe5eab9caf3c8dc;hp=e0f65960f6886e620feafd8a4aad89c019daec15;hpb=1283b99c6f018cf0ec52fc482fd70e7b6d80602c;p=friendica.git diff --git a/view/theme/frio/style.php b/view/theme/frio/style.php index e0f65960f6..d8bffa9c64 100644 --- a/view/theme/frio/style.php +++ b/view/theme/frio/style.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']; }