]> git.mxchange.org Git - friendica.git/blobdiff - index.php
undefined element
[friendica.git] / index.php
index 8e2376e918120c4d0c7319c28c8c30a643376ae2..8abca2eb82a87b3650f577b91507953ed7a35c69 100644 (file)
--- a/index.php
+++ b/index.php
@@ -414,7 +414,10 @@ if(!$a->theme['stylesheet'])
        $stylesheet = current_theme_url();
 else
        $stylesheet = $a->theme['stylesheet'];
-$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet));
+// this creates hundreds of compiled templates, when all we really want is a string replace.
+// $a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet));
+
+$a->page['htmlhead'] = str_replace('$stylesheet',$stylesheet,$a->page['htmlhead']);
 
 $page    = $a->page;
 $profile = $a->profile;