diff options
author | Simon L'nu <simon.lnu@gmail.com> | 2012-04-14 15:12:39 -0400 |
---|---|---|
committer | Simon L'nu <simon.lnu@gmail.com> | 2012-04-14 15:12:39 -0400 |
commit | 1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e (patch) | |
tree | 32486e253628ab64fa466f34dfc0703d9ce8644c /boot.php | |
parent | 16f729912a00cc92d0473f3d326080531a2fb393 (diff) | |
parent | 6591b292a1e22e3eaec41af0a61a6911e9847098 (diff) | |
download | volse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.tar.gz volse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.tar.bz2 volse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.zip |
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master:
bogus empty list element in dfrn_request page when emailnet not enabled
zrl on random profile
zrl hook
bug #372 - category feeds
pass zrl's to/through global directory
* master:
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)) |