]> git.mxchange.org Git - friendica.git/blobdiff - index.php
bad checkin
[friendica.git] / index.php
index 8abca2eb82a87b3650f577b91507953ed7a35c69..8e2376e918120c4d0c7319c28c8c30a643376ae2 100644 (file)
--- a/index.php
+++ b/index.php
@@ -414,10 +414,7 @@ if(!$a->theme['stylesheet'])
        $stylesheet = current_theme_url();
 else
        $stylesheet = $a->theme['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']);
+$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet));
 
 $page    = $a->page;
 $profile = $a->profile;