aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-04 00:37:29 -0700
committerFriendika <info@friendika.com>2010-11-04 00:37:29 -0700
commit95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4 (patch)
tree68998773b83c0f437f220ecd115266fae4586507 /index.php
parent4f8445760c7a9cc89eed4f7cbb3eccb605ecabbe (diff)
downloadvolse-hubzilla-95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4.tar.gz
volse-hubzilla-95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4.tar.bz2
volse-hubzilla-95a425a1f39e784d7dc8a8b7302cf24bc8c0f0f4.zip
minor stuff
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index 895e439ea..e858fcc97 100644
--- a/index.php
+++ b/index.php
@@ -105,6 +105,11 @@ $a->page['content'] .= '<div id="pause"></div>';
if($a->module != 'install')
require_once("nav.php");
+// make sure the desired theme exists, though if the default theme doesn't exist we're stuffed.
+
+if((x($_SESSION,'theme')) && (! file_exists('/view/theme/' . $_SESSION['theme'] . '/style.css')))
+ unset($_SESSION['theme']);
+
$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array(
'$stylesheet' => $a->get_baseurl() . '/view/theme/'
. ((x($_SESSION,'theme')) ? $_SESSION['theme'] : 'default')