]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/all.php
Convert use of common_server_error and common_user_error to methods on Action
[quix0rs-gnu-social.git] / actions / all.php
index 526ac5f40881257217885ac0b99a68729a164e48..4ad7f12aee3deb798bc142937dad0a97187cbc19 100644 (file)
@@ -33,14 +33,14 @@ class AllAction extends StreamAction
         $user = User::staticGet('nickname', $nickname);
 
         if (!$user) {
-            $this->client_error(_('No such user.'));
+            $this->clientError(_('No such user.'));
             return;
         }
 
         $profile = $user->getProfile();
 
         if (!$profile) {
-            common_server_error(_('User has no profile.'));
+            $this->serverError(_('User has no profile.'));
             return;
         }
 
@@ -57,7 +57,7 @@ class AllAction extends StreamAction
 
     function show_header($user)
     {
-        common_element('link', array('rel' => 'alternate',
+        $this->element('link', array('rel' => 'alternate',
                                      'href' => common_local_url('allrss', array('nickname' =>
                                                                                $user->nickname)),
                                      'type' => 'application/rss+xml',