From: Siebrand Mazeland Date: Mon, 1 Apr 2013 16:37:42 +0000 (+0200) Subject: Fix PHPDoc X-Git-Tag: 1.31.0-rc.0~20155 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=bb06eee75664be5bbfdd157d9684f32dce1ce342;p=lhc%2Fweb%2Fwiklou.git Fix PHPDoc Was incorrectly documenting Article instead of Page. Also changed $article to $page to avoid confusion. Change-Id: I366769a201b5fda1c8d59119bdac908fd7727cbf --- diff --git a/includes/actions/CreditsAction.php b/includes/actions/CreditsAction.php index 4d3c41bec9..895f3d3822 100644 --- a/includes/actions/CreditsAction.php +++ b/includes/actions/CreditsAction.php @@ -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 = '';