1
1
Fork 0

pass zrl's to/through global directory

This commit is contained in:
friendica 2012-04-14 03:51:41 -07:00
commit 0d869ceb65
2 changed files with 5 additions and 3 deletions

View file

@ -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))