mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:35:12 +00:00
turn relative links in app_render() into absolute links, without affecting the install.
This commit is contained in:
parent
b57e735199
commit
b7538b6ada
2 changed files with 9 additions and 4 deletions
|
@ -176,14 +176,19 @@ function app_render($papp,$mode = 'view') {
|
|||
|
||||
$installed = false;
|
||||
|
||||
if(! $papp['photo'])
|
||||
$papp['photo'] = z_root() . '/' . get_default_profile_photo(80);
|
||||
|
||||
if(! $papp)
|
||||
return;
|
||||
|
||||
if(! $papp['photo'])
|
||||
$papp['photo'] = z_root() . '/' . get_default_profile_photo(80);
|
||||
|
||||
|
||||
|
||||
$papp['papp'] = papp_encode($papp);
|
||||
|
||||
if(! strstr($papp['url'],'://'))
|
||||
$papp['url'] = z_root() . ((strpos($papp['url'],'/') === 0) ? '' : '/') . $papp['url'];
|
||||
|
||||
foreach($papp as $k => $v) {
|
||||
if(strpos($v,'http') === 0 && $k != 'papp')
|
||||
$papp[$k] = zid($v);
|
||||
|
|
|
@ -1 +1 @@
|
|||
2015-10-19.1190
|
||||
2015-10-21.1192
|
||||
|
|
Loading…
Reference in a new issue