X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=d3a4cef44ebf5bfca9239583d7923858ce3109e8;hb=7770317f1ede7a0d429262b1fa288e861bd8c879;hp=40551f3881cf22860f0fd89b797c15513e88c345;hpb=f07df4f667c42866b2ea7e65ad1356cdd5b394f5;p=friendica.git diff --git a/index.php b/index.php index 40551f3881..d3a4cef44e 100644 --- a/index.php +++ b/index.php @@ -183,6 +183,10 @@ if(strlen($a->module)) { * */ + // Compatibility with the Android Diaspora client + if ($a->module == "stream") + $a->module = "network"; + if(is_array($a->plugins) && in_array($a->module,$a->plugins) && file_exists("addon/{$a->module}/{$a->module}.php")) { include_once("addon/{$a->module}/{$a->module}.php"); if(function_exists($a->module . '_module')) @@ -410,7 +414,9 @@ if(!$a->theme['stylesheet']) $stylesheet = current_theme_url(); else $stylesheet = $a->theme['stylesheet']; -$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;