]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Harmonise UI message "No such user."
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sun, 8 Nov 2009 22:10:44 +0000 (23:10 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Sun, 8 Nov 2009 22:10:44 +0000 (23:10 +0100)
20 files changed:
actions/apiaccountupdateprofileimage.php
actions/apiblockcreate.php
actions/apiblockdestroy.php
actions/apidirectmessage.php
actions/apidirectmessagenew.php
actions/apigroupcreate.php
actions/apigroupismember.php
actions/apigroupjoin.php
actions/apigroupleave.php
actions/apigrouplist.php
actions/apistatusesupdate.php
actions/apisubscriptions.php
actions/apitimelinefavorites.php
actions/apitimelinefriends.php
actions/apitimelinementions.php
actions/apitimelineuser.php
actions/microsummary.php
actions/newmessage.php
actions/remotesubscribe.php
lib/oauthstore.php

index 72fb361bf8bcbdf183bb3e4f9304c4350d5d4d6d..2f8e9628c42b0896d85a83b4aa84d5d4863840c9 100644 (file)
@@ -102,7 +102,7 @@ class ApiAccountUpdateProfileImageAction extends ApiAuthAction
         }
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index 1cab2df5d0d9584ebf9d982aa69eb0dc1ccb622d..4f941f6c32e3a8f10b0f4d6c82454919ff59c26b 100644 (file)
@@ -94,7 +94,7 @@ class ApiBlockCreateAction extends ApiAuthAction
         }
 
         if (empty($this->user) || empty($this->other)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index 16dbf94caf5204a8e1f7a97c604d612e90bbdea4..328f18ab0dcf1765d688f807160b314ac4ba3dd2 100644 (file)
@@ -93,7 +93,7 @@ class ApiBlockDestroyAction extends ApiAuthAction
         }
 
         if (empty($this->user) || empty($this->other)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index a21fe86d20269268faf5fb3d1c4cc89b9a84990b..5b3f412adcd552833f0f3be4f9ef915573b8f767 100644 (file)
@@ -74,7 +74,7 @@ class ApiDirectMessageAction extends ApiAuthAction
         $this->user = $this->auth_user;
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index ca1ee70dde6370697f5b1afcb2aa77f45aec01f5..fed6acc30e6ed4ecb55617b05a98fd6e3a028e62 100644 (file)
@@ -72,7 +72,7 @@ class ApiDirectMessageNewAction extends ApiAuthAction
         $this->user = $this->auth_user;
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index f66e830738ec20ba134bde3ee4892066b6e8e6f4..895dfb7abae5f2074217a47c9e25be65fd49d20f 100644 (file)
@@ -109,7 +109,7 @@ class ApiGroupCreateAction extends ApiAuthAction
         }
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index a8a40a6b3ba37a39dd61e8842f649bb5c5bf2b78..a822d18dddc64fce890cd09c54d0e8af9e6ad9de 100644 (file)
@@ -87,7 +87,7 @@ class ApiGroupIsMemberAction extends ApiBareAuthAction
         parent::handle($args);
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index 071cd9290f3743a353cb68b4a8bc2610ab8fa5d2..ffda3986ff0808e9de6d15df72f391aea8dad471 100644 (file)
@@ -96,7 +96,7 @@ class ApiGroupJoinAction extends ApiAuthAction
         }
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index 0d4bb9e4d357b9a6c1b913a9978a0a17a76fccc7..8665ea1aa81f28b45cb39b28e059067321dda080 100644 (file)
@@ -96,7 +96,7 @@ class ApiGroupLeaveAction extends ApiAuthAction
         }
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index c529c1e408f29276909dcc0ef1aa20d1ef100116..7b05f8a96cbdd70ee10272f0e987ff40f7336648 100644 (file)
@@ -87,7 +87,7 @@ class ApiGroupListAction extends ApiBareAuthAction
         parent::handle($args);
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index e369fa71ee7b5eca92da9a63125abdb02c3a08c9..5c23acccae7958e01d71395fceafc6d85b5e27dc 100644 (file)
@@ -136,7 +136,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
         }
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index bc68dd192a64dfa8b6a5a991c162266bfc2a30ab..2c691bb84cf746296f699465fe171f8c94744718 100644 (file)
@@ -84,7 +84,7 @@ class ApiSubscriptionsAction extends ApiBareAuthAction
         $this->user = $this->getTargetUser($this->arg('id'));
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return false;
         }
 
index b8ae74f1377077c62739a46c4895308bb4363b0d..f84d7b4cb7eee65ff23aa300576757efd1184d5c 100644 (file)
@@ -67,7 +67,7 @@ class ApiTimelineFavoritesAction extends ApiBareAuthAction
         $this->user = $this->getTargetUser($this->arg('id'));
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index 66dd3f2b29fbf4da4b91a4b8f8bcb31f8308970d..e84f7737235cce4958962bf2fca026e28674d359 100644 (file)
@@ -76,7 +76,7 @@ class ApiTimelineFriendsAction extends ApiBareAuthAction
         $this->user = $this->getTargetUser($this->arg('id'));
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index fe5ff0f28fd2eabfa0c7d236c4877bbb51d58fc7..0956ccdceb54ee5a9d624b49e868657dddf38a47 100644 (file)
@@ -76,7 +76,7 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
         $this->user = $this->getTargetUser($this->arg('id'));
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index 285735fd1a6ac53122dee6b27656e40e1bb05973..ca1d217725ed834c5a7411c7bfb71094943d8aa8 100644 (file)
@@ -78,7 +78,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction
         $this->user = $this->getTargetUser($this->arg('id'));
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
index 5c01a9ce0f0646b945191f955da90b184fef262f..5c761e8bb6f06acdba886a5350528fd58f71550a 100644 (file)
@@ -59,7 +59,7 @@ class MicrosummaryAction extends Action
         $user     = User::staticGet('nickname', $nickname);
 
         if (!$user) {
-            $this->clientError(_('No such user'), 404);
+            $this->clientError(_('No such user.'), 404);
             return;
         }
         
index 095a7d1d34bed2685ebff113064a2decf5853020..0db2e7181ca7d327b37023e7143ae70cbb932b56 100644 (file)
@@ -113,7 +113,7 @@ class NewmessageAction extends Action
             $this->other = User::staticGet('id', $this->to);
 
             if (!$this->other) {
-                $this->clientError(_('No such user'), 404);
+                $this->clientError(_('No such user.'), 404);
                 return false;
             }
 
index aee2a5d8e79f1d7a54a7c1f945eecf4752299344..74025cf807b45395a9451e44541950f64a8a8b60 100644 (file)
@@ -151,7 +151,7 @@ class RemotesubscribeAction extends Action
         $this->profile_url = $this->trimmed('profile_url');
 
         if (!$this->profile_url) {
-            $this->showForm(_('No such user'));
+            $this->showForm(_('No such user.'));
             return;
         }
 
index d617a7df7e6216f52d72d0beec8892487256f94b..a4ea5ad4d0eccaa1eb9fa65541ab85748a1a2023 100644 (file)
@@ -351,7 +351,7 @@ class StatusNetOAuthDataStore extends OAuthDataStore
             $author = User::staticGet('uri', $author_uri);
         }
         if (!$author) {
-            throw new Exception('No such user');
+            throw new Exception('No such user.');
         }
 
         common_log(LOG_DEBUG, print_r($author, true), __FILE__);
@@ -407,7 +407,7 @@ class StatusNetOAuthDataStore extends OAuthDataStore
             $user = User::staticGet('uri', $uri);
         }
         if (!$user) {
-            throw new Exception('No such user');
+            throw new Exception('No such user.');
         }
         return $user;
     }