]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Mapstraction/usermap.php
use jquery-ui for input_forms tabset
[quix0rs-gnu-social.git] / plugins / Mapstraction / usermap.php
index 3e517ee864fef9ab1d9c4b1cbdc64f82f9ef152b..54412146ee49cb001e14a4c8695c5835e640fc27 100644 (file)
@@ -38,13 +38,12 @@ if (!defined('STATUSNET')) {
  * @package  StatusNet
  * @author   Evan Prodromou <evan@status.net>
  * @author   Craig Andrews <candrews@integralblue.com>
+ * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org
  * @license  http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link     http://status.net/
  */
-
 class UsermapAction extends MapAction
 {
-
     function prepare($args)
     {
         if(parent::prepare($args)) {
@@ -59,16 +58,14 @@ class UsermapAction extends MapAction
 
     function title()
     {
-        if (!empty($this->profile->fullname)) {
-            $base = $this->profile->fullname . ' (' . $this->user->nickname . ') ';
-        } else {
-            $base = $this->user->nickname;
-        }
+        $base = $this->profile->getFancyName();
 
         if ($this->page == 1) {
+            // @todo CHECKME: inconsisten with paged variant below. " map" missing.
             return $base;
         } else {
-            return sprintf(_("%s map, page %d"),
+            // @todo CHECKME: Is the part ", page %2$d" relevant here?
+            return sprintf(_m("%s map, page %d"),
                            $base,
                            $this->page);
         }