1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class UsermapAction extends MapAction
- {
- function prepare($args)
- {
- if(parent::prepare($args)) {
- $this->notice = empty($this->tag)
- ? $this->user->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1)
- : $this->user->getTaggedNotices($this->tag, ($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1, 0, 0, null);
- return true;
- }else{
- return false;
- }
- }
- function title()
- {
- $base = $this->profile->getFancyName();
- if ($this->page == 1) {
-
-
- return sprintf(_m('%s map'),$base);
- } else {
-
-
-
- return sprintf(_m("%1$s map, page %2$d"),
- $base,
- $this->page);
- }
- }
- }
|