]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/style.php
Merge pull request #6508 from nupplaphil/logger_enh
[friendica.git] / view / theme / frio / style.php
index e0f65960f6886e620feafd8a4aad89c019daec15..d8bffa9c645c4ff048b0b329a2927f7e32d2d4e9 100644 (file)
@@ -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'];
 }