fix user theme ignoring active settings profile
This commit is contained in:
parent
1da0818188
commit
f7fe28d059
|
@ -64,7 +64,7 @@
|
||||||
<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
|
<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
|
||||||
|
|
||||||
<?php if ($_SESSION["uid"]) {
|
<?php if ($_SESSION["uid"]) {
|
||||||
$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
|
$theme = get_pref("USER_CSS_THEME");
|
||||||
if ($theme && theme_valid("$theme")) {
|
if ($theme && theme_valid("$theme")) {
|
||||||
echo stylesheet_tag(get_theme_path($theme));
|
echo stylesheet_tag(get_theme_path($theme));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
|
<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
|
||||||
|
|
||||||
<?php if ($_SESSION["uid"]) {
|
<?php if ($_SESSION["uid"]) {
|
||||||
$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
|
$theme = get_pref("USER_CSS_THEME");
|
||||||
if ($theme && theme_valid("$theme")) {
|
if ($theme && theme_valid("$theme")) {
|
||||||
echo stylesheet_tag(get_theme_path($theme));
|
echo stylesheet_tag(get_theme_path($theme));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue