From: Siebrand Mazeland Date: Mon, 25 May 2009 13:53:48 +0000 (+0000) Subject: * feed arrays into getFullURL() for readability X-Git-Tag: 1.31.0-rc.0~41658 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=517484bb5ec3e7b43a7288d72b4aea0161b2a4ca;p=lhc%2Fweb%2Fwiklou.git * feed arrays into getFullURL() for readability * fix indentation (spaces to tab) --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 04fdd46c00..2fe5d6115b 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -460,7 +460,7 @@ EOT $longDesc EOT - ); + ); } } @@ -471,10 +471,11 @@ EOT # Image does not exist if ( $wgEnableUploads && $wgUser->isAllowed( 'upload' ) ) { // Only show an upload link if the user can upload - $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); - $nofile = wfMsgHtml('filepage-nofile-link', - $uploadTitle->getFullUrl( 'wpDestFile=' . urlencode( $this->img->getName() ) ) - ); + $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); + $nofile = wfMsgHtml( + 'filepage-nofile-link', + $uploadTitle->getFullUrl( array( 'wpDestFile' => urlencode( $this->img->getName() ) ) ) + ); } else { @@ -516,7 +517,10 @@ EOT public function getUploadUrl() { $this->loadFile(); $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); - return $uploadTitle->getFullUrl( 'wpDestFile=' . urlencode( $this->img->getName() ) . '&wpForReUpload=1' ); + return $uploadTitle->getFullUrl( array( + 'wpDestFile' => urlencode( $this->img->getName() ), + 'wpForReUpload' => 1 + ) ); } /**