*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding convention applied)

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-19 14:26:13 +01:00
commit 884f44ce94
108 changed files with 407 additions and 437 deletions

View file

@ -31,14 +31,14 @@ function xrd_init(&$a) {
$tpl = get_markup_template('xrd_diaspora.tpl');
$dspr = replace_macros($tpl,array(
'$baseurl' => $a->get_baseurl(),
'$baseurl' => App::get_baseurl(),
'$dspr_guid' => $r[0]['guid'],
'$dspr_key' => base64_encode(pemtorsa($r[0]['pubkey']))
));
$tpl = get_markup_template('xrd_person.tpl');
$profile_url = $a->get_baseurl().'/profile/'.$r[0]['nickname'];
$profile_url = App::get_baseurl().'/profile/'.$r[0]['nickname'];
if ($acct)
$alias = $profile_url;
@ -54,15 +54,15 @@ function xrd_init(&$a) {
'$accturi' => $uri,
'$alias' => $alias,
'$profile_url' => $profile_url,
'$hcard_url' => $a->get_baseurl() . '/hcard/' . $r[0]['nickname'],
'$atom' => $a->get_baseurl() . '/dfrn_poll/' . $r[0]['nickname'],
'$zot_post' => $a->get_baseurl() . '/post/' . $r[0]['nickname'],
'$poco_url' => $a->get_baseurl() . '/poco/' . $r[0]['nickname'],
'$photo' => $a->get_baseurl() . '/photo/profile/' . $r[0]['uid'] . '.jpg',
'$hcard_url' => App::get_baseurl() . '/hcard/' . $r[0]['nickname'],
'$atom' => App::get_baseurl() . '/dfrn_poll/' . $r[0]['nickname'],
'$zot_post' => App::get_baseurl() . '/post/' . $r[0]['nickname'],
'$poco_url' => App::get_baseurl() . '/poco/' . $r[0]['nickname'],
'$photo' => App::get_baseurl() . '/photo/profile/' . $r[0]['uid'] . '.jpg',
'$dspr' => $dspr,
'$salmon' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'],
'$salmen' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'] . '/mention',
'$subscribe' => $a->get_baseurl() . '/follow?url={uri}',
'$salmon' => App::get_baseurl() . '/salmon/' . $r[0]['nickname'],
'$salmen' => App::get_baseurl() . '/salmon/' . $r[0]['nickname'] . '/mention',
'$subscribe' => App::get_baseurl() . '/follow?url={uri}',
'$modexp' => 'data:application/magic-public-key,' . $salmon_key,
'$bigkey' => salmon_key($r[0]['pubkey'])
));