From f7b2f9f5e7556e241d096ad31d9140619895f529 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 17 Feb 2011 00:40:35 -0800 Subject: convert update script arg passing to js - remembering the browser prefetch issues --- mod/profile.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'mod/profile.php') 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 .= '
' . "\r\n"; - $o .= "\r\n"; + $o .= "\r\n"; } - } // Construct permissions -- cgit v1.2.3