mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:10:10 +00:00
Register Friendica stylesheet using App->registerStylesheet()
- Remove mentions of {{$stylesheet}} in head.tpl templates
This commit is contained in:
parent
2ae6556b32
commit
f0cdd25e34
4 changed files with 12 additions and 43 deletions
10
index.php
10
index.php
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue