diff options
author | Friendika <info@friendika.com> | 2011-07-21 20:19:55 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-07-21 20:19:55 -0700 |
commit | 77cea581b0c6ddfef59cfe69da4457628c18f022 (patch) | |
tree | 6e0198ea727bd27b161570015c009e57f4772bd9 | |
parent | f4b4f61f66f2bbba7b62597db8162c1ceede2810 (diff) | |
download | volse-hubzilla-77cea581b0c6ddfef59cfe69da4457628c18f022.tar.gz volse-hubzilla-77cea581b0c6ddfef59cfe69da4457628c18f022.tar.bz2 volse-hubzilla-77cea581b0c6ddfef59cfe69da4457628c18f022.zip |
better fix for bug #107, last one was flawed
-rw-r--r-- | include/main.js | 2 | ||||
-rw-r--r-- | mod/community.php | 2 | ||||
-rw-r--r-- | mod/network.php | 1 | ||||
-rw-r--r-- | mod/profile.php | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/include/main.js b/include/main.js index 0e9c6ee75..d17d923e4 100644 --- a/include/main.js +++ b/include/main.js @@ -149,7 +149,7 @@ prev = 'live-' + src; in_progress = true; - var udargs = ((netargs.length) ? '/?f=' + netargs : '?f='); + var udargs = ((netargs.length) ? '/' + netargs : ''); var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); $.get(update_url,function(data) { diff --git a/mod/community.php b/mod/community.php index 73feaabc6..cf43598b5 100644 --- a/mod/community.php +++ b/mod/community.php @@ -27,7 +27,7 @@ function community_content(&$a, $update = 0) { if(! $update) { $o .= '<script> $(document).ready(function() { $(\'#nav-community-link\').addClass(\'nav-selected\'); });</script>'; $o .= '<div id="live-community"></div>' . "\r\n"; - $o .= "<script> var profile_uid = -1; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; + $o .= "<script> var profile_uid = -1; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; } if(x($a->data,'search')) diff --git a/mod/network.php b/mod/network.php index f05bf3e34..000c9e2fe 100644 --- a/mod/network.php +++ b/mod/network.php @@ -126,6 +126,7 @@ function network_content(&$a, $update = 0) { $o .= '<div id="live-network"></div>' . "\r\n"; $o .= "<script> var profile_uid = " . $_SESSION['uid'] . "; var netargs = '" . substr($a->cmd,8) + . '?f='; . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '') . ((x($_GET,'search')) ? '&search=' . $_GET['search'] : '') . ((x($_GET,'star')) ? '&star=' . $_GET['star'] : '') diff --git a/mod/profile.php b/mod/profile.php index e9b144ffd..f4b6bfaf1 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -160,7 +160,7 @@ function profile_content(&$a, $update = 0) { if($tab === 'posts') { $o .= '<div id="live-profile"></div>' . "\r\n"; $o .= "<script> var profile_uid = " . $a->profile['profile_uid'] - . "; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; + . "; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; } } |