]> git.mxchange.org Git - friendica.git/commitdiff
Changes
authorRoland Häder <roland@mxchange.org>
Thu, 30 Jun 2022 12:49:51 +0000 (14:49 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 30 Jun 2022 12:50:28 +0000 (14:50 +0200)
- renamed Widget::accounttypes() to Widget::accountTypes()
- fixed type-hint the documentation was wrong

src/Content/Widget.php
src/Module/Contact.php
src/Module/Contact/Contacts.php
src/Module/Conversation/Community.php
src/Module/Conversation/Network.php

index 9295818113e14c736e1e15b9507ddf5125de5639..fba027680c7f84f169edf330464273446438413e 100644 (file)
@@ -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')],
index c7b2870ece4c9523ac7dcd78483727aadc9bdd8f..ccc61d343897af2befdeebaac4d5dad754a9d69d 100644 (file)
@@ -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);
index 65fb5a43ea454e5f643b78efa86219c364aebaad..e26811001f48c50a97978a25508b8cb3f55dcf9a 100644 (file)
@@ -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;
        }
index 877bed3e220df7255820f8e382873c700c448f6f..16e0f38afd48186be454e44e49b0d69ec7ceffd6 100644 (file)
@@ -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;
index 701d5371f012b093f83b601bc29d0a12ca0e1300..6c133b69e46de5883d598832a8c038703a4f37cb 100644 (file)
@@ -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);