summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-12-09 15:16:53 +0300
committerAndrew Dolgov <[email protected]>2014-12-09 15:16:53 +0300
commitf6cbe9a5a03056be4e8f20747ef5f933e2a55f12 (patch)
tree15d08ffc7ec733d6a310066714cff2244af7aecf /prefs.php
parent9b46c8e5e74ce512e92df156ba9caa5156d637fb (diff)
require version information in all additional themes
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/prefs.php b/prefs.php
index cc6267798..191f452c4 100644
--- a/prefs.php
+++ b/prefs.php
@@ -41,7 +41,7 @@
<?php if ($_SESSION["uid"]) {
$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
- if ($theme && file_exists("themes/$theme")) {
+ if ($theme && theme_valid("$theme")) {
echo stylesheet_tag("themes/$theme");
} else {
echo stylesheet_tag("themes/default.css");