Function is renamed
This commit is contained in:
parent
4d7c5f5672
commit
4a5014eab5
|
@ -514,7 +514,7 @@ class Profile
|
||||||
* @param Mode $mode
|
* @param Mode $mode
|
||||||
* @return boolean
|
* @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()) {
|
if (empty($uid) || $mode->isMobile()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -231,7 +231,7 @@ class Network extends Timeline
|
||||||
} else {
|
} else {
|
||||||
$this->systemMessages->addNotice($this->l10n->t('Invalid contact.'));
|
$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::getBirthdays($this->session->getLocalUserId());
|
||||||
$o .= Profile::getEventsReminderHTML($this->session->getLocalUserId(), $this->session->getPublicContactId());
|
$o .= Profile::getEventsReminderHTML($this->session->getLocalUserId(), $this->session->getPublicContactId());
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,7 +220,7 @@ class Conversations extends BaseProfile
|
||||||
$last_updated_array[$last_updated_key] = time();
|
$last_updated_array[$last_updated_key] = time();
|
||||||
$this->session->set('last_updated', $last_updated_array);
|
$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::getBirthdays($this->session->getLocalUserId());
|
||||||
$o .= ProfileModel::getEventsReminderHTML($this->session->getLocalUserId(), $this->session->getPublicContactId());
|
$o .= ProfileModel::getEventsReminderHTML($this->session->getLocalUserId(), $this->session->getPublicContactId());
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@ class Profile extends BaseModule
|
||||||
$last_updated_array[$last_updated_key] = time();
|
$last_updated_array[$last_updated_key] = time();
|
||||||
DI::session()->set('last_updated', $last_updated_array);
|
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::getBirthdays(DI::userSession()->getLocalUserId());
|
||||||
$o .= ProfileModel::getEventsReminderHTML(DI::userSession()->getLocalUserId(), DI::userSession()->getPublicContactId());
|
$o .= ProfileModel::getEventsReminderHTML(DI::userSession()->getLocalUserId(), DI::userSession()->getPublicContactId());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user