summaryrefslogtreecommitdiff
path: root/actions/allrss.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/allrss.php')
-rw-r--r--actions/allrss.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/actions/allrss.php b/actions/allrss.php
index 05787f3f7..45f3946a6 100644
--- a/actions/allrss.php
+++ b/actions/allrss.php
@@ -53,7 +53,9 @@ class AllrssAction extends Rss10Action
/**
* Initialization.
- *
+ *
+ * @param array $args Web and URL arguments
+ *
* @return boolean false if user doesn't exist
*/
function prepare($args)
@@ -79,9 +81,10 @@ class AllrssAction extends Rss10Action
*/
function getNotices($limit=0)
{
- $user = $this->user;
- $notice = $user->noticesWithFriends(0, $limit);
-
+ $user = $this->user;
+ $notice = $user->noticesWithFriends(0, $limit);
+ $notices = array();
+
while ($notice->fetch()) {
$notices[] = clone($notice);
}
@@ -104,7 +107,8 @@ class AllrssAction extends Rss10Action
'link' => common_local_url('all',
array('nickname' =>
$user->nickname)),
- 'description' => sprintf(_('Feed for friends of %s'), $user->nickname));
+ 'description' => sprintf(_('Feed for friends of %s'),
+ $user->nickname));
return $c;
}
@@ -123,10 +127,5 @@ class AllrssAction extends Rss10Action
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
return $avatar ? $avatar->url : null;
}
-
- function isReadOnly()
- {
- return true;
- }
}