X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmailbox.php;h=db686a255a757f8b75a845dc82a8e0f3ea8e7815;hb=25198a8d4cee5b2182f1ecb99192a4108a01afa4;hp=7faeb7dba3b0365d0ba856e10e5285c29b52a106;hpb=b7d07466943a73e1c009467c8daa6e499810080f;p=quix0rs-gnu-social.git diff --git a/lib/mailbox.php b/lib/mailbox.php index 7faeb7dba3..db686a255a 100644 --- a/lib/mailbox.php +++ b/lib/mailbox.php @@ -42,8 +42,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { * @see InboxAction * @see OutboxAction */ - -class MailboxAction extends CurrentUserDesignAction +class MailboxAction extends Action { var $page = null; @@ -71,12 +70,12 @@ class MailboxAction extends CurrentUserDesignAction * * @return void */ - function handle($args) { parent::handle($args); if (!$this->user) { + // TRANS: Client error displayed when trying to access a mailbox without providing a user. $this->clientError(_('No such user.'), 404); return; } @@ -84,6 +83,7 @@ class MailboxAction extends CurrentUserDesignAction $cur = common_current_user(); if (!$cur || $cur->id != $this->user->id) { + // TRANS: Client error displayed when trying to access a mailbox that is not of the logged in user. $this->clientError(_('Only the user can read their own mailboxes.'), 403); return; @@ -92,12 +92,6 @@ class MailboxAction extends CurrentUserDesignAction $this->showPage(); } - function showLocalNav() - { - $nav = new PersonalGroupNav($this); - $nav->show(); - } - function showNoticeForm() { $message_form = new MessageForm($this); @@ -120,8 +114,9 @@ class MailboxAction extends CurrentUserDesignAction $this->trimmed('action'), array('nickname' => $this->user->nickname)); } else { - $this->element('p', - 'guide', + $this->element('p', + 'guide', + // TRANS: Message displayed when there are no private messages in the inbox of a user. _('You have no private messages. '. 'You can send private message to engage other users in conversation. '. 'People can send you messages for your eyes only.')); @@ -145,7 +140,6 @@ class MailboxAction extends CurrentUserDesignAction * * @return void */ - function showPageNotice() { $instr = $this->getInstructions(); @@ -163,9 +157,14 @@ class MailboxAction extends CurrentUserDesignAction * * @return boolean */ - function isReadOnly($args) { return true; } + + function showObjectNav() + { + $mm = new MailboxMenu($this); + $mm->show(); + } }