Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -460,7 +460,7 @@ |
461 | 461 | <span class="fileInfo">$longDesc</span> |
462 | 462 | </div> |
463 | 463 | EOT |
464 | | - ); |
| 464 | + ); |
465 | 465 | } |
466 | 466 | } |
467 | 467 | |
— | — | @@ -471,10 +471,11 @@ |
472 | 472 | # Image does not exist |
473 | 473 | if ( $wgEnableUploads && $wgUser->isAllowed( 'upload' ) ) { |
474 | 474 | // Only show an upload link if the user can upload |
475 | | - $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); |
476 | | - $nofile = wfMsgHtml('filepage-nofile-link', |
477 | | - $uploadTitle->getFullUrl( 'wpDestFile=' . urlencode( $this->img->getName() ) ) |
478 | | - ); |
| 475 | + $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); |
| 476 | + $nofile = wfMsgHtml( |
| 477 | + 'filepage-nofile-link', |
| 478 | + $uploadTitle->getFullUrl( array( 'wpDestFile' => urlencode( $this->img->getName() ) ) ) |
| 479 | + ); |
479 | 480 | } |
480 | 481 | else |
481 | 482 | { |
— | — | @@ -516,7 +517,10 @@ |
517 | 518 | public function getUploadUrl() { |
518 | 519 | $this->loadFile(); |
519 | 520 | $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); |
520 | | - return $uploadTitle->getFullUrl( 'wpDestFile=' . urlencode( $this->img->getName() ) . '&wpForReUpload=1' ); |
| 521 | + return $uploadTitle->getFullUrl( array( |
| 522 | + 'wpDestFile' => urlencode( $this->img->getName() ), |
| 523 | + 'wpForReUpload' => 1 |
| 524 | + ) ); |
521 | 525 | } |
522 | 526 | |
523 | 527 | /** |