aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-06 15:50:50 -0800
committerFriendika <info@friendika.com>2011-02-06 15:50:50 -0800
commit147d7f3bbf6c785f2c1eb7cdcfaa0a47e0ee43d3 (patch)
tree6509082047c27a2de2ab647d4def7051ab6dc813 /index.php
parent8e988341d01de0b061a9d14846c660e7e76d80db (diff)
downloadvolse-hubzilla-147d7f3bbf6c785f2c1eb7cdcfaa0a47e0ee43d3.tar.gz
volse-hubzilla-147d7f3bbf6c785f2c1eb7cdcfaa0a47e0ee43d3.tar.bz2
volse-hubzilla-147d7f3bbf6c785f2c1eb7cdcfaa0a47e0ee43d3.zip
theme name cleanup - rename default to loozah, provide sane fallbacks and change system primary theme.
Provide indication on contact edit page of last update success/failure - can be extended later to show actual timestamp of last successful update.
Diffstat (limited to 'index.php')
-rw-r--r--index.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/index.php b/index.php
index 685a76a13..5f128ebb1 100644
--- a/index.php
+++ b/index.php
@@ -238,21 +238,10 @@ if($a->module != 'install')
require_once('nav.php');
/**
- *
* Build the page - now that we have all the components
- * 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_theme)
- . '/style.css'
- ));
+$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => current_theme_url()));
$page = $a->page;
$profile = $a->profile;