forked from GNUsocial/gnu-social
split() is deprecated and should be explode()
We don't need the regexpness anyway.
This commit is contained in:
parent
556d6e198f
commit
bd00ef839d
@ -29,9 +29,7 @@
|
|||||||
* @link http://status.net/
|
* @link http://status.net/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('GNUSOCIAL') && !defined('STATUSNET')) {
|
if (!defined('GNUSOCIAL')) { exit(1); }
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List users for autocompletion
|
* List users for autocompletion
|
||||||
@ -142,7 +140,7 @@ class AutocompleteAction extends Action
|
|||||||
foreach($this->profiles as $profile){
|
foreach($this->profiles as $profile){
|
||||||
$avatarUrl = $profile->avatarUrl(AVATAR_MINI_SIZE);
|
$avatarUrl = $profile->avatarUrl(AVATAR_MINI_SIZE);
|
||||||
$acct = $profile->getAcctUri();
|
$acct = $profile->getAcctUri();
|
||||||
$identifier = split(':', $profile->getAcctUri(), 2)[1];
|
$identifier = explode(':', $profile->getAcctUri(), 2)[1];
|
||||||
$results[] = array(
|
$results[] = array(
|
||||||
'value' => '@'.$identifier,
|
'value' => '@'.$identifier,
|
||||||
'nickname' => $profile->getNickname(),
|
'nickname' => $profile->getNickname(),
|
||||||
@ -161,7 +159,7 @@ class AutocompleteAction extends Action
|
|||||||
$avatarUrl = User_group::defaultLogo(AVATAR_MINI_SIZE);
|
$avatarUrl = User_group::defaultLogo(AVATAR_MINI_SIZE);
|
||||||
}
|
}
|
||||||
$acct = $profile->getAcctUri();
|
$acct = $profile->getAcctUri();
|
||||||
$identifier = split(':', $profile->getAcctUri(), 2)[1];
|
$identifier = explode(':', $profile->getAcctUri(), 2)[1];
|
||||||
$results[] = array(
|
$results[] = array(
|
||||||
'value' => '!'.$group->getNickname(),
|
'value' => '!'.$group->getNickname(),
|
||||||
'nickname' => $group->getNickname(),
|
'nickname' => $group->getNickname(),
|
||||||
|
Loading…
Reference in New Issue
Block a user