From 1e1a24d8c11479da877e130dd6bf1a9ffc0a4aba Mon Sep 17 00:00:00 2001 From: Robin Millette Date: Fri, 23 Jan 2009 04:03:04 +0000 Subject: [PATCH 1/2] small bugfix, it's prepare() not initialize() --- actions/allrss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/allrss.php b/actions/allrss.php index e357d12f02..248f59f438 100644 --- a/actions/allrss.php +++ b/actions/allrss.php @@ -49,7 +49,6 @@ require_once INSTALLDIR.'/lib/rssaction.php'; */ class AllrssAction extends Rss10Action { - var $user = null; /** @@ -57,8 +56,9 @@ class AllrssAction extends Rss10Action * * @return boolean false if user doesn't exist */ - function init() + function prepare($args) { + parent::prepare($args); $nickname = $this->trimmed('nickname'); $this->user = User::staticGet('nickname', $nickname); From 3f328256bd16239a573958cf925f7943a65da3a6 Mon Sep 17 00:00:00 2001 From: Robin Millette Date: Fri, 23 Jan 2009 04:07:52 +0000 Subject: [PATCH 2/2] uiredesign --- actions/repliesrss.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/actions/repliesrss.php b/actions/repliesrss.php index 43be133a43..48c4fa2553 100644 --- a/actions/repliesrss.php +++ b/actions/repliesrss.php @@ -28,8 +28,9 @@ class RepliesrssAction extends Rss10Action var $user = null; - function init() + function prepare($args) { + parent::prepare($args); $nickname = $this->trimmed('nickname'); $this->user = User::staticGet('nickname', $nickname); @@ -41,7 +42,7 @@ class RepliesrssAction extends Rss10Action } } - function get_notices($limit=0) + function getNotices($limit=0) { $user = $this->user; @@ -57,7 +58,7 @@ class RepliesrssAction extends Rss10Action return $notices; } - function get_channel() + function getChannel() { $user = $this->user; $c = array('url' => common_local_url('repliesrss', @@ -71,7 +72,7 @@ class RepliesrssAction extends Rss10Action return $c; } - function get_image() + function getImage() { $user = $this->user; $profile = $user->getProfile(); @@ -81,4 +82,4 @@ class RepliesrssAction extends Rss10Action $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); return ($avatar) ? $avatar->url : null; } -} \ No newline at end of file +}