X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=5f128ebb1b4754a9615a97d244d3bcc1b7db2dce;hb=147d7f3bbf6c785f2c1eb7cdcfaa0a47e0ee43d3;hp=685a76a13185e26baf02960e43bf2e4a17896776;hpb=e962561f8d511129d87b5e50eede8e96b2bdfb7c;p=friendica.git diff --git a/index.php b/index.php index 685a76a131..5f128ebb1b 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;