Revert "Coding convention applied - part 1"

This commit is contained in:
Hypolite Petovan 2017-03-21 12:02:59 -04:00 committed by GitHub
commit 7b352f3f74
181 changed files with 3507 additions and 4338 deletions

View file

@ -6,15 +6,14 @@ 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,'@'));
}