From 024f2019e6a3f23bec88d3c1100d67456e34adc9 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 21 Aug 2010 16:31:46 -0700 Subject: store default location --- mod/profile.php | 1 + 1 file changed, 1 insertion(+) (limited to 'mod/profile.php') diff --git a/mod/profile.php b/mod/profile.php index 44f718102..c5047d615 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -149,6 +149,7 @@ function profile_content(&$a, $update = false) { $lockstate = 'unlock'; $o .= replace_macros($tpl,array( '$baseurl' => $a->get_baseurl(), + '$defloc' => (($_SESSION['uid'] == $a->profile['profile_uid']) ? $a->user['default-location'] : ''), '$return_path' => $a->cmd, '$visitor' => (($_SESSION['uid'] == $a->profile['profile_uid']) ? 'block' : 'none'), '$lockstate' => $lockstate, -- cgit v1.2.3