X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublicrss.php;h=11db3b37a48c57a3252323fa358c670215a8970e;hb=f4e17c1bdf42643c2bb530228f88809147992e9d;hp=593888b9f66fd6fee0bd0f59333f4c174fc51dec;hpb=b3b3af9a2eff10c272bb213eccd3dd3060bc5830;p=quix0rs-gnu-social.git diff --git a/actions/publicrss.php b/actions/publicrss.php index 593888b9f6..11db3b37a4 100644 --- a/actions/publicrss.php +++ b/actions/publicrss.php @@ -1,5 +1,4 @@ notices = $this->getNotices($this->limit); + return true; + } + /** * Initialization. - * + * * @return boolean true */ function init() @@ -73,7 +85,7 @@ class PublicrssAction extends Rss10Action while ($notice->fetch()) { $notices[] = clone($notice); } - + return $notices; } @@ -84,11 +96,14 @@ class PublicrssAction extends Rss10Action */ function getChannel() { + $sitename = common_config('site', 'name'); $c = array( - 'url' => common_local_url('publicrss') - , 'title' => sprintf(_('%s public timeline'), common_config('site', 'name')) - , 'link' => common_local_url('public') - , 'description' => sprintf(_('%s updates from everyone!'), common_config('site', 'name'))); + 'url' => common_local_url('publicrss'), + // TRANS: Public RSS feed title. %s is the StatusNet site name. + 'title' => sprintf(_('%s public timeline'), $sitename), + 'link' => common_local_url('public'), + // TRANS: Public RSS feed description. %s is the StatusNet site name. + 'description' => sprintf(_('%s updates from everyone.'), $sitename)); return $c; } @@ -96,7 +111,7 @@ class PublicrssAction extends Rss10Action * Get image. * * @return nothing - */ + */ function getImage() { // nop @@ -107,4 +122,3 @@ class PublicrssAction extends Rss10Action return true; } } -