Fix remaining instances of "contacts"

This commit is contained in:
Hypolite Petovan 2018-10-14 18:02:54 -04:00
parent 74c5f1f684
commit 756a4f1111
2 changed files with 4 additions and 4 deletions

View File

@ -349,7 +349,7 @@ class Group extends BaseObject
* @param int $cid
* @return string
*/
public static function sidebarWidget($every = 'contacts', $each = 'group', $editmode = 'standard', $group_id = '', $cid = 0)
public static function sidebarWidget($every = 'contact', $each = 'group', $editmode = 'standard', $group_id = '', $cid = 0)
{
$o = '';
@ -404,7 +404,7 @@ class Group extends BaseObject
'newgroup' => $editmode == 'extended' || $editmode == 'full' ? 1 : '',
'grouppage' => 'group/',
'$edittext' => L10n::t('Edit group'),
'$ungrouped' => $every === 'contacts' ? L10n::t('Contacts not in any group') : '',
'$ungrouped' => $every === 'contact' ? L10n::t('Contacts not in any group') : '',
'$ungrouped_selected' => (($group_id === 'none') ? 'group-selected' : ''),
'$createtext' => L10n::t('Create a new group'),
'$creategroup' => L10n::t('Group Name: '),

View File

@ -94,7 +94,7 @@ class Contact extends BaseModule
$networks_widget = '';
} else {
$vcard_widget = '';
$networks_widget = Widget::networks('contacts', $nets);
$networks_widget = Widget::networks('contact', $nets);
if (isset($_GET['add'])) {
$follow_widget = Widget::follow($_GET['add']);
} else {
@ -105,7 +105,7 @@ class Contact extends BaseModule
}
if ($contact['uid'] != 0) {
$groups_widget = Model\Group::sidebarWidget('contacts', 'group', 'full', 'everyone', $contact_id);
$groups_widget = Model\Group::sidebarWidget('contact', 'group', 'full', 'everyone', $contact_id);
} else {
$groups_widget = null;
}