]> git.mxchange.org Git - friendica.git/blobdiff - index.php
PL: update to the strings
[friendica.git] / index.php
index a1926d63afc68e215aab00aa944cc89bd29139a3..d3a4cef44ebf5bfca9239583d7923858ce3109e8 100644 (file)
--- a/index.php
+++ b/index.php
@@ -32,9 +32,7 @@ $install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false
 
 
 
-$lang = get_browser_language();
-       
-load_translation_table($lang);
+
 
 /**
  *
@@ -62,6 +60,9 @@ if(!$install) {
        $maintenance = get_config('system', 'maintenance');
 }
 
+$lang = get_browser_language();
+
+load_translation_table($lang);
 
 /**
  *
@@ -182,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'))
@@ -409,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;