]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix some stuff with tagother link
authorEvan Prodromou <evan@prodromou.name>
Fri, 21 Nov 2008 00:33:38 +0000 (19:33 -0500)
committerEvan Prodromou <evan@prodromou.name>
Fri, 21 Nov 2008 00:33:38 +0000 (19:33 -0500)
darcs-hash:20081121003338-84dde-45745ca353eb5a68627335115d2993fd15a38498.gz

actions/tagother.php
lib/profilelist.php

index d4be3dd33b09dc8ed196b76e16f875a6a30f9896..a5129faee112e0a46c6f6db1696b816e3a646012 100644 (file)
@@ -37,12 +37,12 @@ class TagotherAction extends Action {
                } else {
                        $id = $this->trimmed('id');
                        if (!$id) {
-                               $this->client_error(_('No profile to tag.'));
+                               $this->client_error(_('No id argument.'));
                                return;
                        }
                        $profile = Profile::staticGet('id', $id);
-                       if ($profile) {
-                               $this->client_error(_('No profile to tag.'));
+                       if (!$profile) {
+                               $this->client_error(_('No profile with that ID.'));
                                return;
                        }
                        $this->show_form($profile);
index 7fb0eb2d3c367585e5a8a38b75f20580e072353f..6ecb9c9238876e6f58dc6355e47e557ce9154848 100644 (file)
@@ -150,8 +150,8 @@ class ProfileList {
                        }
                        
                        common_element('a', array('href' => common_local_url('tagother',
-                                                                                                                                array('id' => $this->profile->id,
-                                                                                                                                          'class' => 'tagother'))),
+                                                                                                                                array('id' => $this->profile->id)),
+                                                                         'class' => 'tagother'),
                                                   _('Tag'));
                }