X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUpload.php;h=dbb1481c49fc94f95eb35fe17c5a11dccfb8d605;hb=1c7c9bdf1fc5d57434aadeffff749807f042df24;hp=836b6df47ec7d332307f365ef525b542b8aa44a1;hpb=d67121f6d3961bb7dfc44f71e8b5a4b8b9279eef;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php
index 836b6df47e..dbb1481c49 100644
--- a/includes/specials/SpecialUpload.php
+++ b/includes/specials/SpecialUpload.php
@@ -324,7 +324,13 @@ class SpecialUpload extends SpecialPage {
);
$link = $this->msg( $user->isAllowed( 'delete' ) ? 'thisisdeleted' : 'viewdeleted' )
->rawParams( $restorelink )->parseAsBlock();
- $this->getOutput()->addHTML( "
{$link}
" );
+ $this->getOutput()->addHTML(
+ Html::rawElement(
+ 'div',
+ [ 'id' => 'contentSub2' ],
+ $link
+ )
+ );
}
}
}
@@ -483,7 +489,7 @@ class SpecialUpload extends SpecialPage {
// Fetch the file if required
$status = $this->mUpload->fetchFile();
if ( !$status->isOK() ) {
- $this->showUploadError( $this->getOutput()->parse( $status->getWikiText() ) );
+ $this->showUploadError( $this->getOutput()->parseAsInterface( $status->getWikiText() ) );
return;
}
@@ -553,7 +559,9 @@ class SpecialUpload extends SpecialPage {
$changeTagsStatus = ChangeTags::canAddTagsAccompanyingChange(
$changeTags, $this->getUser() );
if ( !$changeTagsStatus->isOK() ) {
- $this->showUploadError( $this->getOutput()->parse( $changeTagsStatus->getWikiText() ) );
+ $this->showUploadError( $this->getOutput()->parseAsInterface(
+ $changeTagsStatus->getWikiText()
+ ) );
return;
}
@@ -568,7 +576,9 @@ class SpecialUpload extends SpecialPage {
);
if ( !$status->isGood() ) {
- $this->showRecoverableUploadError( $this->getOutput()->parse( $status->getWikiText() ) );
+ $this->showRecoverableUploadError(
+ $this->getOutput()->parseAsInterface( $status->getWikiText() )
+ );
return;
}