mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Rework Profile::getThemeUid to ignore query parameter and include $a->profile_uid
- Use new version in frio default.php file - Use new version in Theme::getStylesheetPath
This commit is contained in:
parent
1bdb3c916a
commit
abf20368b0
3 changed files with 11 additions and 19 deletions
|
@ -42,10 +42,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
|
|||
|
||||
// Add the theme color meta
|
||||
// It makes mobile Chrome UI match Frio's top bar color.
|
||||
$uid = $a->profile_uid;
|
||||
if (is_null($uid)) {
|
||||
$uid = Profile::getThemeUid();
|
||||
}
|
||||
$uid = Profile::getThemeUid($a);
|
||||
$scheme = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema'));
|
||||
if ($scheme && ($scheme != '---')) {
|
||||
if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue