From: Raimond Spekking Date: Tue, 5 Feb 2008 12:40:41 +0000 (+0000) Subject: Remove useless brackets as we have a nice table since months X-Git-Tag: 1.31.0-rc.0~49604 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=2151dfa04a71342d1a4c6afed1832f3e37cd3bfb;p=lhc%2Fweb%2Fwiklou.git Remove useless brackets as we have a nice table since months Document function a bit --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index e73730bb1e..846f0d9ab2 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -563,6 +563,19 @@ class ImageHistoryList { return "\n"; } + /** + * Create one row of file history + * + * @param bool $iscur is this the current file version? + * @param string $timestamp timestamp of file version + * @param string $img filename + * @param int $user ID of uploading user + * @param string $usertext username of uploading user + * @param int $size size of file version + * @param string $description description of file version + * @param string $dims dimensions of file version + * @return string a HTML formatted table row + */ public function imageHistoryLine( $iscur, $timestamp, $img, $user, $usertext, $size, $description, $dims ) { global $wgUser, $wgLang, $wgContLang; $local = $this->img->isLocal(); @@ -575,28 +588,28 @@ class ImageHistoryList { $q[] = 'action=delete'; if( !$iscur ) $q[] = 'oldimage=' . urlencode( $img ); - $row .= '(' . $this->skin->makeKnownLinkObj( + $row .= $this->skin->makeKnownLinkObj( $this->title, wfMsgHtml( $iscur ? 'filehist-deleteall' : 'filehist-deleteone' ), implode( '&', $q ) - ) . ')'; + ); $row .= ''; } // Reversion link/current indicator $row .= ''; if( $iscur ) { - $row .= '(' . wfMsgHtml( 'filehist-current' ) . ')'; + $row .= wfMsgHtml( 'filehist-current' ); } elseif( $local && $wgUser->isLoggedIn() && $this->title->userCan( 'edit' ) ) { $q = array(); $q[] = 'action=revert'; $q[] = 'oldimage=' . urlencode( $img ); $q[] = 'wpEditToken=' . urlencode( $wgUser->editToken( $img ) ); - $row .= '(' . $this->skin->makeKnownLinkObj( + $row .= $this->skin->makeKnownLinkObj( $this->title, wfMsgHtml( 'filehist-revert' ), implode( '&', $q ) - ) . ')'; + ); } $row .= '';