aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-14 03:51:41 -0700
committerfriendica <info@friendica.com>2012-04-14 03:51:41 -0700
commit0d869ceb65badbd4d80dd0d5cf2d631bca7f5b9e (patch)
tree26b0116b223d01080a2185f4e89c978fd6cf9978 /boot.php
parent7c63ca8364c15102e4c4dfb1718d2887c4d1c5dd (diff)
downloadvolse-hubzilla-0d869ceb65badbd4d80dd0d5cf2d631bca7f5b9e.tar.gz
volse-hubzilla-0d869ceb65badbd4d80dd0d5cf2d631bca7f5b9e.tar.bz2
volse-hubzilla-0d869ceb65badbd4d80dd0d5cf2d631bca7f5b9e.zip
pass zrl's to/through global directory
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 5ba3b1b4a..0bd201a25 100644
--- a/boot.php
+++ b/boot.php
@@ -1494,11 +1494,13 @@ function get_my_url() {
return false;
}
-function zrl($s) {
+function zrl($s,$force = false) {
if(! strlen($s))
return $s;
- if(! strpos($s,'/profile/'))
+ if((! strpos($s,'/profile/')) && (! $force))
return $s;
+ if($force && substr($s,-1,1) !== '/')
+ $s = $s . '/';
$achar = strpos($s,'?') ? '&' : '?';
$mine = get_my_url();
if($mine and ! link_compare($mine,$s))