Changes
- renamed Widget::accounttypes() to Widget::accountTypes() - fixed type-hint the documentation was wrong
This commit is contained in:
parent
83cbe586ac
commit
5c0e8c62de
|
@ -512,10 +512,10 @@ class Widget
|
|||
* The account type value is added as a parameter to the url
|
||||
*
|
||||
* @param string $base Basepath
|
||||
* @param int $accounttype Acount type
|
||||
* @param string $accounttype Account type
|
||||
* @return string
|
||||
*/
|
||||
public static function accounttypes(string $base, int $accounttype): string
|
||||
public static function accountTypes(string $base, string $accounttype): string
|
||||
{
|
||||
$accounts = [
|
||||
['ref' => 'person', 'name' => DI::l10n()->t('Persons')],
|
||||
|
|
|
@ -186,7 +186,7 @@ class Contact extends BaseModule
|
|||
$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);
|
||||
$rel_widget = Widget::contactRels($_SERVER['REQUEST_URI'], $rel);
|
||||
$groups_widget = Widget::groups($_SERVER['REQUEST_URI'], $group);
|
||||
|
|
|
@ -141,7 +141,7 @@ class Contacts extends BaseModule
|
|||
'$paginate' => $pager->renderFull($total),
|
||||
]);
|
||||
|
||||
DI::page()['aside'] .= Widget::accounttypes($_SERVER['REQUEST_URI'], $accounttype);
|
||||
DI::page()['aside'] .= Widget::accountTypes($_SERVER['REQUEST_URI'], $accounttype);
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ class Community extends BaseModule
|
|||
|
||||
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')) {
|
||||
$path = self::$content;
|
||||
|
|
|
@ -86,7 +86,7 @@ class Network extends BaseModule
|
|||
|
||||
$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'] .= ForumManager::widget($module . '/forum', local_user(), self::$forumContactId);
|
||||
DI::page()['aside'] .= Widget::postedByYear($module . '/archive', local_user(), false);
|
||||
|
|
Loading…
Reference in New Issue
Block a user