Make style.php require query parameter puid for specific stylesheets
This commit is contained in:
parent
6d1bc974a0
commit
1bdb3c916a
|
@ -10,7 +10,7 @@ if (file_exists("$THEMEPATH/style.css")) {
|
||||||
echo file_get_contents("$THEMEPATH/style.css");
|
echo file_get_contents("$THEMEPATH/style.css");
|
||||||
}
|
}
|
||||||
|
|
||||||
$uid = Profile::getThemeUid();
|
$uid = defaults($_REQUEST, 'puid', 0);
|
||||||
|
|
||||||
$s_colorset = Config::get('duepuntozero', 'colorset');
|
$s_colorset = Config::get('duepuntozero', 'colorset');
|
||||||
$colorset = PConfig::get($uid, 'duepuntozero', 'colorset');
|
$colorset = PConfig::get($uid, 'duepuntozero', 'colorset');
|
||||||
|
|
|
@ -14,7 +14,7 @@ $scheme_modified = 0;
|
||||||
|
|
||||||
if ($a->module !== 'install') {
|
if ($a->module !== 'install') {
|
||||||
// Get the UID of the profile owner.
|
// Get the UID of the profile owner.
|
||||||
$uid = Profile::getThemeUid();
|
$uid = defaults($_REQUEST, 'puid', 0);
|
||||||
if ($uid) {
|
if ($uid) {
|
||||||
PConfig::load($uid, 'frio');
|
PConfig::load($uid, 'frio');
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ use Friendica\Core\Config;
|
||||||
use Friendica\Core\PConfig;
|
use Friendica\Core\PConfig;
|
||||||
use Friendica\Model\Profile;
|
use Friendica\Model\Profile;
|
||||||
|
|
||||||
$uid = Profile::getThemeUid();
|
$uid = defaults($_REQUEST, 'puid', 0);
|
||||||
|
|
||||||
$color = false;
|
$color = false;
|
||||||
$quattro_align = false;
|
$quattro_align = false;
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Friendica\Core\Config;
|
||||||
use Friendica\Core\PConfig;
|
use Friendica\Core\PConfig;
|
||||||
use Friendica\Model\Profile;
|
use Friendica\Model\Profile;
|
||||||
|
|
||||||
$uid = Profile::getThemeUid();
|
$uid = defaults($_REQUEST, 'puid', 0);
|
||||||
|
|
||||||
$style = PConfig::get($uid, 'vier', 'style');
|
$style = PConfig::get($uid, 'vier', 'style');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue