X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Frepliesrss.php;h=985318bf168794943b1d1cc5216b21279d502f23;hb=5e816d7be208fc24419288234559c78da7391c8b;hp=3689ea1f8ffd95cc19d4c7f61f8804dbe9283ca1;hpb=edbc0c665cc65875b4d14b79939233b1c9c06bb6;p=quix0rs-gnu-social.git diff --git a/actions/repliesrss.php b/actions/repliesrss.php index 3689ea1f8f..985318bf16 100644 --- a/actions/repliesrss.php +++ b/actions/repliesrss.php @@ -23,23 +23,27 @@ require_once(INSTALLDIR.'/lib/rssaction.php'); // Formatting of RSS handled by Rss10Action -class RepliesrssAction extends Rss10Action { +class RepliesrssAction extends Rss10Action +{ - var $user = NULL; + var $user = null; - function init() { + function prepare($args) + { + parent::prepare($args); $nickname = $this->trimmed('nickname'); $this->user = User::staticGet('nickname', $nickname); if (!$this->user) { - common_user_error(_('No such user.')); + $this->clientError(_('No such user.')); return false; } else { return true; } } - function get_notices($limit=0) { + function getNotices($limit=0) + { $user = $this->user; @@ -54,7 +58,8 @@ class RepliesrssAction extends Rss10Action { return $notices; } - function get_channel() { + function getChannel() + { $user = $this->user; $c = array('url' => common_local_url('repliesrss', array('nickname' => @@ -67,13 +72,19 @@ class RepliesrssAction extends Rss10Action { return $c; } - function get_image() { + function getImage() + { $user = $this->user; $profile = $user->getProfile(); if (!$profile) { - return NULL; + return null; } $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); - return ($avatar) ? $avatar->url : NULL; + return ($avatar) ? $avatar->url : null; } -} \ No newline at end of file + + function isReadOnly() + { + return true; + } +}