diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2010-12-28 15:38:16 +0100 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2010-12-28 15:38:16 +0100 |
commit | efc4e76c7a783737a9f83a5c0dd33014e81a803f (patch) | |
tree | 555d1e390969eec25c771ea3286c679ea27f3c1e /index.php | |
parent | 7b6385df946db4a61e8fc330c1a89b1415ca68ef (diff) | |
download | volse-hubzilla-efc4e76c7a783737a9f83a5c0dd33014e81a803f.tar.gz volse-hubzilla-efc4e76c7a783737a9f83a5c0dd33014e81a803f.tar.bz2 volse-hubzilla-efc4e76c7a783737a9f83a5c0dd33014e81a803f.zip |
'system','theme' config to set default site theme
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -212,13 +212,13 @@ if($a->module != 'install') * Make sure the desired theme exists, though if the default theme doesn't exist we're stuffed. * */ - +$default_theme = ((isset($a->config['system']['theme'])) ? $a->config['system']['theme'] : 'default'); 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') + . ((x($_SESSION,'theme')) ? $_SESSION['theme'] : $default_theme) . '/style.css' )); |