]> git.mxchange.org Git - friendica.git/commitdiff
Function is renamed
authorMichael <heluecht@pirati.ca>
Sat, 25 Nov 2023 15:14:06 +0000 (15:14 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 25 Nov 2023 15:14:06 +0000 (15:14 +0000)
src/Model/Profile.php
src/Module/Conversation/Network.php
src/Module/Profile/Conversations.php
src/Module/Update/Profile.php

index 65a27c34697f5d23be5af3fe0a644d6ce60f42b8..825a2299eaacb554d3af4e6ccf0c511ff6cbe2b4 100644 (file)
@@ -514,7 +514,7 @@ class Profile
         * @param Mode $mode
         * @return boolean
         */
-       public static function displayEventList(int $uid, Mode $mode): bool
+       public static function shouldDisplayEventList(int $uid, Mode $mode): bool
        {
                if (empty($uid) || $mode->isMobile()) {
                        return false;
index 9308db3203f0674cb70efd83f02e9ca44e3788c4..002a92e538b7ffba2f51860b83797c4287fd722e 100644 (file)
@@ -231,7 +231,7 @@ class Network extends Timeline
                        } else {
                                $this->systemMessages->addNotice($this->l10n->t('Invalid contact.'));
                        }
-               } elseif (Profile::displayEventList($this->session->getLocalUserId(), $this->mode)) {
+               } elseif (Profile::shouldDisplayEventList($this->session->getLocalUserId(), $this->mode)) {
                        $o .= Profile::getBirthdays($this->session->getLocalUserId());
                        $o .= Profile::getEventsReminderHTML($this->session->getLocalUserId(), $this->session->getPublicContactId());
                }
index ff6e7b749e9197784074f300240d9fd0800ba39d..90adb0ebe70b9e9d5e0f2784f5d81c59a8e36eb7 100644 (file)
@@ -220,7 +220,7 @@ class Conversations extends BaseProfile
                $last_updated_array[$last_updated_key] = time();
                $this->session->set('last_updated', $last_updated_array);
 
-               if ($is_owner && ProfileModel::displayEventList($this->session->getLocalUserId(), $this->mode)) {
+               if ($is_owner && ProfileModel::shouldDisplayEventList($this->session->getLocalUserId(), $this->mode)) {
                        $o .= ProfileModel::getBirthdays($this->session->getLocalUserId());
                        $o .= ProfileModel::getEventsReminderHTML($this->session->getLocalUserId(), $this->session->getPublicContactId());
                }
index 204ef11b9962a6969104ad8f8a53f550689845dc..4453a36edeced7e2cb60f07300d57a085389780b 100644 (file)
@@ -104,7 +104,7 @@ class Profile extends BaseModule
                $last_updated_array[$last_updated_key] = time();
                DI::session()->set('last_updated', $last_updated_array);
 
-               if ($is_owner && !$a->getProfileOwner() && ProfileModel::displayEventList(DI::userSession()->getLocalUserId(), DI::mode())) {
+               if ($is_owner && !$a->getProfileOwner() && ProfileModel::shouldDisplayEventList(DI::userSession()->getLocalUserId(), DI::mode())) {
                        $o .= ProfileModel::getBirthdays(DI::userSession()->getLocalUserId());
                        $o .= ProfileModel::getEventsReminderHTML(DI::userSession()->getLocalUserId(), DI::userSession()->getPublicContactId());
                }