api/src/Vfs/Sharing.php 1 location
|
@@ 657-663 (lines=7) @@
|
| 654 |
|
if (is_array($share)) $share = $share['share_token']; |
| 655 |
|
|
| 656 |
|
$link = Api\Framework::link('/share.php').'/'.$share; |
| 657 |
|
if ($link[0] == '/') |
| 658 |
|
{ |
| 659 |
|
$link = ($_SERVER['HTTPS'] ? 'https://' : 'http://'). |
| 660 |
|
($GLOBALS['egw_info']['server']['hostname'] ? |
| 661 |
|
$GLOBALS['egw_info']['server']['hostname'] : $_SERVER['HTTP_HOST']). |
| 662 |
|
$link; |
| 663 |
|
} |
| 664 |
|
return $link; |
| 665 |
|
} |
| 666 |
|
} |
api/src/Storage/Merge.php 1 location
|
@@ 259-264 (lines=6) @@
|
| 256 |
|
} |
| 257 |
|
break; |
| 258 |
|
case 'jpegphoto': // returning a link might make more sense then the binary photo |
| 259 |
|
if ($contact['photo']) |
| 260 |
|
{ |
| 261 |
|
$value = ($GLOBALS['egw_info']['server']['webserver_url'][0] == '/' ? |
| 262 |
|
($_SERVER['HTTPS'] ? 'https://' : 'http://').$_SERVER['HTTP_HOST'] : ''). |
| 263 |
|
$GLOBALS['egw']->link('/index.php',$contact['photo']); |
| 264 |
|
} |
| 265 |
|
break; |
| 266 |
|
case 'tel_prefer': |
| 267 |
|
if ($value && $contact[$value]) |