1234567891011121314151617181920212223242526272829303132 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class PrivateStreamException extends AuthorizationException
- {
- var $owner = null;
- var $reader = null;
- public function __construct(Profile $owner, Profile $reader=null)
- {
- $this->owner = $owner;
- $this->reader = $reader;
-
- $msg = sprintf(_m('This stream is protected and only authorized subscribers may see its contents.'));
-
-
- parent::__construct($msg, ($reader instanceof Profile ? 403 : 401));
- }
- }
|