Browse Source

Make style.php require query parameter puid for specific stylesheets

pull/6428/head
Hypolite Petovan 2 years ago
parent
commit
1bdb3c916a
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      view/theme/duepuntozero/style.php
  2. +1
    -1
      view/theme/frio/style.php
  3. +1
    -1
      view/theme/quattro/style.php
  4. +1
    -1
      view/theme/vier/style.php

+ 1
- 1
view/theme/duepuntozero/style.php View File

@ -10,7 +10,7 @@ if (file_exists("$THEMEPATH/style.css")) {
echo file_get_contents("$THEMEPATH/style.css");
}
$uid = Profile::getThemeUid();
$uid = defaults($_REQUEST, 'puid', 0);
$s_colorset = Config::get('duepuntozero', 'colorset');
$colorset = PConfig::get($uid, 'duepuntozero', 'colorset');


+ 1
- 1
view/theme/frio/style.php View 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');


+ 1
- 1
view/theme/quattro/style.php View File

@ -6,7 +6,7 @@ use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Model\Profile;
$uid = Profile::getThemeUid();
$uid = defaults($_REQUEST, 'puid', 0);
$color = false;
$quattro_align = false;


+ 1
- 1
view/theme/vier/style.php View File

@ -7,7 +7,7 @@ use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Model\Profile;
$uid = Profile::getThemeUid();
$uid = defaults($_REQUEST, 'puid', 0);
$style = PConfig::get($uid, 'vier', 'style');


Loading…
Cancel
Save