X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmessage.php;h=f9c5c29ec773a934f3795453c8c6a15b257848f3;hb=7c73e8634c954cc2bd0d1138729459d7d5090f62;hp=13ae2f75120e009dc37a97f2d64022e2876f6bf1;hpb=1f7cb530c78aeaccbfb2f3e11f4ca573beadbdc3;p=friendica.git diff --git a/mod/message.php b/mod/message.php index 13ae2f7512..f9c5c29ec7 100644 --- a/mod/message.php +++ b/mod/message.php @@ -16,6 +16,7 @@ use Friendica\Model\Mail; use Friendica\Util\DateTimeFormat; use Friendica\Util\Proxy as ProxyUtils; use Friendica\Util\Temporal; +use Friendica\Module\Login; require_once 'include/conversation.php'; @@ -97,7 +98,7 @@ function message_content(App $a) if (!local_user()) { notice(L10n::t('Permission denied.') . EOL); - return; + return Login::form(); } $myprofile = System::baseUrl() . '/profile/' . $a->user['nickname']; @@ -278,7 +279,7 @@ function message_content(App $a) ); if (DBA::isResult($r)) { - $a->set_pager_total($r[0]['total']); + $a->setPagerTotal($r[0]['total']); } $r = get_messages(local_user(), $a->pager['start'], $a->pager['itemspage']);