* @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;
} 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());
}
$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());
}
$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());
}