added spaces + some curly braces + some usage of dbm::is_result()
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
720e7d6034
commit
0cd241bcbe
92 changed files with 1190 additions and 1087 deletions
|
|
@ -6,14 +6,15 @@ function xrd_init(App $a) {
|
|||
|
||||
$uri = urldecode(notags(trim($_GET['uri'])));
|
||||
|
||||
if(substr($uri,0,4) === 'http') {
|
||||
if (substr($uri,0,4) === 'http') {
|
||||
$acct = false;
|
||||
$name = basename($uri);
|
||||
} else {
|
||||
$acct = true;
|
||||
$local = str_replace('acct:', '', $uri);
|
||||
if(substr($local,0,2) == '//')
|
||||
if (substr($local,0,2) == '//') {
|
||||
$local = substr($local,2);
|
||||
}
|
||||
|
||||
$name = substr($local,0,strpos($local,'@'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue