turn relative links in app_render() into absolute links, without affecting the install.
This commit is contained in:
parent
b57e735199
commit
b7538b6ada
@ -176,14 +176,19 @@ function app_render($papp,$mode = 'view') {
|
|||||||
|
|
||||||
$installed = false;
|
$installed = false;
|
||||||
|
|
||||||
if(! $papp['photo'])
|
|
||||||
$papp['photo'] = z_root() . '/' . get_default_profile_photo(80);
|
|
||||||
|
|
||||||
if(! $papp)
|
if(! $papp)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(! $papp['photo'])
|
||||||
|
$papp['photo'] = z_root() . '/' . get_default_profile_photo(80);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$papp['papp'] = papp_encode($papp);
|
$papp['papp'] = papp_encode($papp);
|
||||||
|
|
||||||
|
if(! strstr($papp['url'],'://'))
|
||||||
|
$papp['url'] = z_root() . ((strpos($papp['url'],'/') === 0) ? '' : '/') . $papp['url'];
|
||||||
|
|
||||||
foreach($papp as $k => $v) {
|
foreach($papp as $k => $v) {
|
||||||
if(strpos($v,'http') === 0 && $k != 'papp')
|
if(strpos($v,'http') === 0 && $k != 'papp')
|
||||||
$papp[$k] = zid($v);
|
$papp[$k] = zid($v);
|
||||||
|
@ -1 +1 @@
|
|||||||
2015-10-19.1190
|
2015-10-21.1192
|
||||||
|
Reference in New Issue
Block a user