From: Michael Date: Sat, 25 Nov 2023 15:14:06 +0000 (+0000) Subject: Function is renamed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4a5014eab5e641b2abbea4b027a0389def82c13d;p=friendica.git Function is renamed --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 65a27c3469..825a2299ea 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -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; diff --git a/src/Module/Conversation/Network.php b/src/Module/Conversation/Network.php index 9308db3203..002a92e538 100644 --- a/src/Module/Conversation/Network.php +++ b/src/Module/Conversation/Network.php @@ -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()); } diff --git a/src/Module/Profile/Conversations.php b/src/Module/Profile/Conversations.php index ff6e7b749e..90adb0ebe7 100644 --- a/src/Module/Profile/Conversations.php +++ b/src/Module/Profile/Conversations.php @@ -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()); } diff --git a/src/Module/Update/Profile.php b/src/Module/Update/Profile.php index 204ef11b99..4453a36ede 100644 --- a/src/Module/Update/Profile.php +++ b/src/Module/Update/Profile.php @@ -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()); }