- renamed Widget::accounttypes() to Widget::accountTypes()
- fixed type-hint the documentation was wrong
This commit is contained in:
Roland Häder 2022-06-30 14:49:51 +02:00
parent 83cbe586ac
commit 5c0e8c62de
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
5 changed files with 6 additions and 6 deletions

View file

@ -512,10 +512,10 @@ class Widget
* The account type value is added as a parameter to the url * The account type value is added as a parameter to the url
* *
* @param string $base Basepath * @param string $base Basepath
* @param int $accounttype Acount type * @param string $accounttype Account type
* @return string * @return string
*/ */
public static function accounttypes(string $base, int $accounttype): string public static function accountTypes(string $base, string $accounttype): string
{ {
$accounts = [ $accounts = [
['ref' => 'person', 'name' => DI::l10n()->t('Persons')], ['ref' => 'person', 'name' => DI::l10n()->t('Persons')],

View file

@ -186,7 +186,7 @@ class Contact extends BaseModule
$follow_widget = Widget::follow(); $follow_widget = Widget::follow();
} }
$account_widget = Widget::accounttypes($_SERVER['REQUEST_URI'], $accounttype); $account_widget = Widget::accountTypes($_SERVER['REQUEST_URI'], $accounttype);
$networks_widget = Widget::networks($_SERVER['REQUEST_URI'], $nets); $networks_widget = Widget::networks($_SERVER['REQUEST_URI'], $nets);
$rel_widget = Widget::contactRels($_SERVER['REQUEST_URI'], $rel); $rel_widget = Widget::contactRels($_SERVER['REQUEST_URI'], $rel);
$groups_widget = Widget::groups($_SERVER['REQUEST_URI'], $group); $groups_widget = Widget::groups($_SERVER['REQUEST_URI'], $group);

View file

@ -141,7 +141,7 @@ class Contacts extends BaseModule
'$paginate' => $pager->renderFull($total), '$paginate' => $pager->renderFull($total),
]); ]);
DI::page()['aside'] .= Widget::accounttypes($_SERVER['REQUEST_URI'], $accounttype); DI::page()['aside'] .= Widget::accountTypes($_SERVER['REQUEST_URI'], $accounttype);
return $o; return $o;
} }

View file

@ -90,7 +90,7 @@ class Community extends BaseModule
Nav::setSelected('community'); Nav::setSelected('community');
DI::page()['aside'] .= Widget::accounttypes('community/' . self::$content, self::$accountTypeString); DI::page()['aside'] .= Widget::accountTypes('community/' . self::$content, self::$accountTypeString);
if (local_user() && DI::config()->get('system', 'community_no_sharer')) { if (local_user() && DI::config()->get('system', 'community_no_sharer')) {
$path = self::$content; $path = self::$content;

View file

@ -86,7 +86,7 @@ class Network extends BaseModule
$module = 'network'; $module = 'network';
DI::page()['aside'] .= Widget::accounttypes($module, self::$accountTypeString); DI::page()['aside'] .= Widget::accountTypes($module, self::$accountTypeString);
DI::page()['aside'] .= Group::sidebarWidget($module, $module . '/group', 'standard', self::$groupId); DI::page()['aside'] .= Group::sidebarWidget($module, $module . '/group', 'standard', self::$groupId);
DI::page()['aside'] .= ForumManager::widget($module . '/forum', local_user(), self::$forumContactId); DI::page()['aside'] .= ForumManager::widget($module . '/forum', local_user(), self::$forumContactId);
DI::page()['aside'] .= Widget::postedByYear($module . '/archive', local_user(), false); DI::page()['aside'] .= Widget::postedByYear($module . '/archive', local_user(), false);