Continued with coding convention:

- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- made some SQL keywords upper-cased and added back-ticks to columns/table names

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder
2016-12-20 21:31:05 +01:00
parent bb06d9ce32
commit b4bc07fdcc
9 changed files with 78 additions and 56 deletions
+5 -3
View File
@@ -41,13 +41,15 @@ function xrd_init(&$a) {
$profile_url = App::get_baseurl().'/profile/'.$r[0]['nickname'];
if ($acct)
if ($acct) {
$alias = $profile_url;
}
else {
$alias = 'acct:'.$r[0]['nickname'].'@'.$a->get_hostname();
if ($a->get_path())
if ($a->get_path()) {
$alias .= '/'.$a->get_path();
}
}
$o = replace_macros($tpl, array(
@@ -65,7 +67,7 @@ function xrd_init(&$a) {
'$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'])
'$bigkey' => salmon_key($r[0]['pubkey']),
));