From: Brion Vibber Date: Tue, 19 Feb 2008 03:09:14 +0000 (+0000) Subject: Fix rendering of filepageexists message. Previously was incorrectly raw HTML, with... X-Git-Tag: 1.31.0-rc.0~49437 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=9df33fec4e756687ce794f1f6ae379037e117b1a;p=lhc%2Fweb%2Fwiklou.git Fix rendering of filepageexists message. Previously was incorrectly raw HTML, with a misspelled "parseinline" setting. Then that was removed. Then the "parseinline" was returned, spelled correctly. However since the parameter *is* a raw HTML link currently, had to add 'replaceafter' --- diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index a095095e30..bdcbc00e71 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -613,7 +613,7 @@ class UploadForm { } elseif( $file->getTitle()->getArticleID() ) { $lnk = $sk->makeKnownLinkObj( $file->getTitle(), '', 'redirect=no' ); - $warning .= '
  • ' . wfMsgExt( 'filepageexists', 'parseinline', $lnk ) . '
  • '; + $warning .= '
  • ' . wfMsgExt( 'filepageexists', array( 'parseinline', 'replaceafter' ), $lnk ) . '
  • '; } elseif ( $file_lc && $file_lc->exists() ) { # Check if image with lowercase extension exists. # It's not forbidden but in 99% it makes no sense to upload the same filename with uppercase extension