(bug 41368) Added category information to InfoAction.
[lhc/web/wiklou.git] / includes / actions / CreditsAction.php
index 17361cc..d0bc22c 100644 (file)
@@ -29,12 +29,8 @@ class CreditsAction extends FormlessAction {
                return 'credits';
        }
 
-       public function getRestriction() {
-               return null;
-       }
-
        protected function getDescription() {
-               return wfMsg( 'creditspage' );
+               return $this->msg( 'creditspage' )->escaped();
        }
 
        /**
@@ -88,7 +84,7 @@ class CreditsAction extends FormlessAction {
 
                $timestamp = $article->getTimestamp();
                if ( $timestamp ) {
-                       $lang = $this->getLang();
+                       $lang = $this->getLanguage();
                        $d = $lang->date( $article->getTimestamp(), true );
                        $t = $lang->time( $article->getTimestamp(), true );
                } else {
@@ -126,7 +122,7 @@ class CreditsAction extends FormlessAction {
 
                # Sift for real versus user names
                foreach ( $contributors as $user ) {
-                       $cnt--; 
+                       $cnt--;
                        if ( $user->isLoggedIn() ) {
                                $link = $this->link( $user );
                                if ( !in_array( 'realname', $wgHiddenPrefs ) && $user->getRealName() ) {
@@ -143,7 +139,7 @@ class CreditsAction extends FormlessAction {
                        }
                }
 
-               $lang = $this->getLang();
+               $lang = $this->getLanguage();
 
                if ( count( $real_names ) ) {
                        $real = $lang->listToText( $real_names );
@@ -223,8 +219,7 @@ class CreditsAction extends FormlessAction {
 
        /**
         * Get a link to action=credits of $article page
-        * @param $article Article object
-        * @return String: html
+        * @return String: HTML link
         */
        protected function othersLink() {
                return Linker::linkKnown(