From 5921dc6f1679afdcc0551da248f94d24db9ed360 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 29 Mar 2012 16:01:44 -0700 Subject: typo in function name --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index b02e686ba..4a4adbbc8 100755 --- a/boot.php +++ b/boot.php @@ -9,7 +9,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '2.3.1295' ); +define ( 'FRIENDICA_VERSION', '2.3.1296' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DB_UPDATE_VERSION', 1133 ); -- cgit v1.2.3 From bb8beb26b4d87c27ce4c8dce3e1229a27a2d1a7e Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 29 Mar 2012 20:58:32 -0700 Subject: use zrl to get home again --- boot.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 4a4adbbc8..1f2b69077 100755 --- a/boot.php +++ b/boot.php @@ -1415,3 +1415,21 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){ return replace_macros($tpl,array('$tabs' => $arr['tabs'])); }} + +function get_my_url() { + if(x($_SESSION,'my_url')) + return $_SESSION['my_url']; + return false; +} + +function zrl($s) { + if(! strlen($s)) + return $s; + if(! strpos($s,'/profile/')) + return $s; + $achar = strpos($s,'?') ? '&' : '?'; + $mine = get_my_url(); + if($mine and ! link_compare($mine,$s)) + return $s . $achar . 'zrl=' . urlencode($mine); + return $s; +} \ No newline at end of file -- cgit v1.2.3