aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-17 00:40:35 -0800
committerFriendika <info@friendika.com>2011-02-17 00:40:35 -0800
commitf7b2f9f5e7556e241d096ad31d9140619895f529 (patch)
tree6e6cc0757be5bf2ea80c3284c1a791bddb256e25 /mod/profile.php
parent3cc63f2e6f17a9da6c023a4dc696a455a3d5286f (diff)
downloadvolse-hubzilla-f7b2f9f5e7556e241d096ad31d9140619895f529.tar.gz
volse-hubzilla-f7b2f9f5e7556e241d096ad31d9140619895f529.tar.bz2
volse-hubzilla-f7b2f9f5e7556e241d096ad31d9140619895f529.zip
convert update script arg passing to js - remembering the browser prefetch issues
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 3a393eea0..46d13298e 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -82,7 +82,6 @@ function profile_content(&$a, $update = 0) {
$is_owner = ((local_user()) && (local_user() == $a->profile['profile_uid']) ? true : false);
-
if(! $update) {
if(x($_GET,'tab'))
$tab = notags(trim($_GET['tab']));
@@ -161,11 +160,11 @@ function profile_content(&$a, $update = 0) {
// This is ugly, but we can't pass the profile_uid through the session to the ajax updater,
// because browser prefetching might change it on us. We have to deliver it with the page.
- if($tab === 'posts' && (! $a->pager['start'])) {
+ if($tab === 'posts') {
$o .= '<div id="live-profile"></div>' . "\r\n";
- $o .= "<script> var profile_uid = " . $a->profile['profile_uid'] . "; </script>\r\n";
+ $o .= "<script> var profile_uid = " . $a->profile['profile_uid']
+ . "; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
}
-
}
// Construct permissions