Register Friendica stylesheet using App->registerStylesheet()

- Remove mentions of {{$stylesheet}} in head.tpl templates
This commit is contained in:
Benjamin Lorteau 2018-09-21 09:54:09 -04:00
parent 2ae6556b32
commit f0cdd25e34
4 changed files with 12 additions and 43 deletions

View file

@ -426,16 +426,6 @@ if ($a->module != 'install' && $a->module != 'maintenance') {
/**
* Build the page - now that we have all the components
*/
if (!$a->theme['stylesheet']) {
$stylesheet = $a->getCurrentThemeStylesheetPath();
} else {
$stylesheet = $a->theme['stylesheet'];
}
$a->page['htmlhead'] = str_replace('{{$stylesheet}}', $stylesheet, $a->page['htmlhead']);
//$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet));
if (isset($_GET["mode"]) && (($_GET["mode"] == "raw") || ($_GET["mode"] == "minimal"))) {
$doc = new DOMDocument();