123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class AllmapAction extends MapAction
- {
- function prepare(array $args = array())
- {
- if (parent::prepare($args)) {
- $stream = new InboxNoticeStream($this->user->getProfile(), $this->scoped);
- $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
- NOTICES_PER_PAGE + 1,
- null,
- null);
- return true;
- } else {
- return false;
- }
- }
- function title()
- {
- $base = $this->profile->getFancyName();
- if ($this->page == 1) {
-
-
- return sprintf(_m("%s friends map"),
- $base);
- } else {
-
-
-
- return sprintf(_m('%1$s friends map, page %2$d'),
- $base,
- $this->page);
- }
- }
- }
|