* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
-}
-
-require_once INSTALLDIR.'/lib/publicgroupnav.php';
-require_once INSTALLDIR.'/lib/noticelist.php';
-require_once INSTALLDIR.'/lib/feedlist.php';
+if (!defined('GNUSOCIAL')) { exit(1); }
// Farther than any human will go
var $notice;
var $userProfile = null;
- function isReadOnly($args)
+ function isReadOnly(array $args=array())
{
return true;
}
*
* @return boolean success value
*/
- function prepare($args)
+ function prepare(array $args=array())
{
parent::prepare($args);
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
if (!$this->notice) {
// TRANS: Server error displayed when a public timeline cannot be retrieved.
$this->serverError(_('Could not retrieve public timeline.'));
- return;
}
if($this->page > 1 && $this->notice->N == 0){
*
* @return void
*/
- function handle($args)
+ function handle(array $args=array())
{
parent::handle($args);
$user = common_current_user();
if (!empty($user) && $user->streamModeOnly()) {
- $nl = new NoticeList($this->notice, $this);
+ $nl = new PrimaryNoticeList($this->notice, $this, array('show_n'=>NOTICES_PER_PAGE));
} else {
$nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
}
$p = Profile::current();
- $pop = new PopularNoticeSection($this, $p);
- $pop->show();
if (!common_config('performance', 'high')) {
$cloud = new PublicTagCloudSection($this);
$cloud->show();