-$lang = get_browser_language();
-load_translation_table($lang);
/**
*
$maintenance = get_config('system', 'maintenance');
}
+$lang = get_browser_language();
+
+load_translation_table($lang);
/**
*
*
*/
+ // 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'))
$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;