minor stuff

This commit is contained in:
Friendika 2010-11-04 00:37:29 -07:00
parent 4f8445760c
commit 95a425a1f3
3 changed files with 9 additions and 3 deletions

View file

@ -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')