aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-03-30 09:03:43 +0200
committerzottel <github@zottel.net>2012-03-30 09:03:43 +0200
commit2212e6931096d188be2dea27bcb4877f16c5c2f8 (patch)
treea0a6b3cec6b1b4108c62ff689e8842d49226b982 /boot.php
parent953840cf822718cba66a0727b576c674c6e44875 (diff)
parentd22b3a1d9c295f5545cc20e1af786cb79e6553a5 (diff)
downloadvolse-hubzilla-2212e6931096d188be2dea27bcb4877f16c5c2f8.tar.gz
volse-hubzilla-2212e6931096d188be2dea27bcb4877f16c5c2f8.tar.bz2
volse-hubzilla-2212e6931096d188be2dea27bcb4877f16c5c2f8.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php20
1 files changed, 19 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index b02e686ba..1f2b69077 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 );
@@ -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