diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-17 23:56:42 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-17 23:56:42 -0700 |
commit | 79e732bd03c020eab36ceb13c5a712e76df3ac75 (patch) | |
tree | 48cd2d1b916a8f53beefa6c856677eb5278921f1 /lib/mailbox.php | |
parent | 19d39b20294bad8dc14df26e76756c558a5083cf (diff) | |
parent | c14c9e1a086f0de29ef5c37fbeb34f6082b1c5ef (diff) |
Merge branch '0.8.x' into twitterpriv
Diffstat (limited to 'lib/mailbox.php')
-rw-r--r-- | lib/mailbox.php | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/lib/mailbox.php b/lib/mailbox.php index 01bbf5721..f1f6e98c1 100644 --- a/lib/mailbox.php +++ b/lib/mailbox.php @@ -31,8 +31,6 @@ if (!defined('LACONICA')) { exit(1); } -require_once INSTALLDIR.'/lib/personal.php'; - define('MESSAGES_PER_PAGE', 20); /** @@ -47,11 +45,11 @@ define('MESSAGES_PER_PAGE', 20); * @see OutboxAction */ -class MailboxAction extends PersonalAction +class MailboxAction extends CurrentUserDesignAction { var $page = null; - function prepare($args) + function prepare($args) { parent::prepare($args); @@ -265,12 +263,12 @@ class MailboxAction extends PersonalAction * Returns either the name (and link) of the API client that posted the notice, * or one of other other channels. * - * @param string $source the source of the message + * @param string $source the source of the message * * @return void */ - function showSource($source) + function showSource($source) { $source_name = _($source); switch ($source) { @@ -297,4 +295,17 @@ class MailboxAction extends PersonalAction return; } + /** + * Mailbox actions are read only + * + * @param array $args other arguments + * + * @return boolean + */ + + function isReadOnly($args) + { + return true; + } + } |