* @link http://status.net/
*/
-if (!defined('STATUSNET')) {
- exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Show a map of user's notices
*/
class AllmapAction extends MapAction
{
- function prepare($args)
+ function prepare(array $args = array())
{
if (parent::prepare($args)) {
- $cur = common_current_user();
- $stream = new InboxNoticeStream($this->user, $cur->getProfile());
+ $stream = new InboxNoticeStream($this->user->getProfile(), $this->scoped);
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
NOTICES_PER_PAGE + 1,
null,