mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:50:11 +00:00
Replace "group" with "circle" in the rest of the code
- Remaining mentions already mean "forum"
This commit is contained in:
parent
4f6e02357a
commit
4f7740264e
120 changed files with 1308 additions and 1304 deletions
|
@ -29,7 +29,7 @@ use Friendica\Core\Search;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Group;
|
||||
use Friendica\Model\Circle;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Model\Profile;
|
||||
|
@ -194,29 +194,29 @@ class Widget
|
|||
}
|
||||
|
||||
/**
|
||||
* Return group membership widget
|
||||
* Return circle membership widget
|
||||
*
|
||||
* @param string $baseurl
|
||||
* @param string $selected
|
||||
* @return string
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function groups(string $baseurl, string $selected = ''): string
|
||||
public static function circles(string $baseurl, string $selected = ''): string
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$options = array_map(function ($group) {
|
||||
$options = array_map(function ($circle) {
|
||||
return [
|
||||
'ref' => $group['id'],
|
||||
'name' => $group['name']
|
||||
'ref' => $circle['id'],
|
||||
'name' => $circle['name']
|
||||
];
|
||||
}, Group::getByUserId(DI::userSession()->getLocalUserId()));
|
||||
}, Circle::getByUserId(DI::userSession()->getLocalUserId()));
|
||||
|
||||
return self::filter(
|
||||
'group',
|
||||
DI::l10n()->t('Groups'),
|
||||
'circle',
|
||||
DI::l10n()->t('Circles'),
|
||||
'',
|
||||
DI::l10n()->t('Everyone'),
|
||||
$baseurl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue