mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
minor stuff
This commit is contained in:
parent
4f8445760c
commit
95a425a1f3
3 changed files with 9 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue