Make style.php require query parameter puid for specific stylesheets

This commit is contained in:
Hypolite Petovan 2019-01-12 02:21:12 -05:00
parent 6d1bc974a0
commit 1bdb3c916a
4 changed files with 4 additions and 4 deletions

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');

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');

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;

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');