turn relative links in app_render() into absolute links, without affecting the install.

This commit is contained in:
redmatrix 2015-10-21 15:00:41 -07:00
parent b57e735199
commit b7538b6ada
2 changed files with 9 additions and 4 deletions

View file

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

View file

@ -1 +1 @@
2015-10-19.1190
2015-10-21.1192