Fix PHPDoc
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 1 Apr 2013 16:37:42 +0000 (18:37 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 1 Apr 2013 16:39:01 +0000 (18:39 +0200)
Was incorrectly documenting Article instead of Page. Also changed $article
to $page to avoid confusion.

Change-Id: I366769a201b5fda1c8d59119bdac908fd7727cbf

includes/actions/CreditsAction.php

index 4d3c41b..895f3d3 100644 (file)
@@ -79,17 +79,17 @@ class CreditsAction extends FormlessAction {
 
        /**
         * Get the last author with the last modification time
-        * @param $article Article object
+        * @param Page $page
         * @return String HTML
         */
-       protected function getAuthor( Page $article ) {
-               $user = User::newFromName( $article->getUserText(), false );
+       protected function getAuthor( Page $page ) {
+               $user = User::newFromName( $page->getUserText(), false );
 
-               $timestamp = $article->getTimestamp();
+               $timestamp = $page->getTimestamp();
                if ( $timestamp ) {
                        $lang = $this->getLanguage();
-                       $d = $lang->date( $article->getTimestamp(), true );
-                       $t = $lang->time( $article->getTimestamp(), true );
+                       $d = $lang->date( $page->getTimestamp(), true );
+                       $t = $lang->time( $page->getTimestamp(), true );
                } else {
                        $d = '';
                        $t = '';