]> git.mxchange.org Git - friendica.git/commitdiff
another silly mistake
authorfriendica <info@friendica.com>
Fri, 30 Mar 2012 04:44:30 +0000 (21:44 -0700)
committerfriendica <info@friendica.com>
Fri, 30 Mar 2012 04:44:30 +0000 (21:44 -0700)
include/nav.php
index.php

index d4f22e7ee7caa92b623495d9666bae57ec662113..2c9c643a92f596ec7d6c10cef84fbdc76b3c02a2 100755 (executable)
@@ -69,9 +69,9 @@ function nav(&$a) {
         * "Home" should also take you home from an authenticated remote profile connection
         */
 
-       $homelink = ((x($_SESSION,'visitor_home')) ? $_SESSION['visitor_home'] : '');
-       if(get_my_url())
-               $homelink = get_my_url();
+       $homelink = get_my_url();
+       if(! $homelink)
+               $homelink = ((x($_SESSION,'visitor_home')) ? $_SESSION['visitor_home'] : '');
 
        if(($a->module != 'home') && (! (local_user()))) 
                $nav['home'] = array($homelink, t('Home'), "", t('Home Page'));
index d4587b754c0cc2f94d2e9ebdf43febe9b81c31e1..2faac1f2899c0cdd4fb9a2776687092da6b8dfbc 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -93,8 +93,8 @@ if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {
        load_translation_table($lang);
 }
 
-if(x($_GET,'zurl')) {
-       $_SESSION['my_url'] = $_GET['zurl'];
+if(x($_GET,'zrl')) {
+       $_SESSION['my_url'] = $_GET['zrl'];
 }
 
 /**