summaryrefslogtreecommitdiff
path: root/thumb.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-12-18 09:47:12 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-12-18 09:47:12 +0100
commitb88ab0086858470dd1f644e64cb4e4f62bb2be9b (patch)
tree6cd21b1fe19aac4e9738e32d9e046d4e053353cd /thumb.php
parent888eab1a076a287bddd84fdf9dd9c57154c91e3f (diff)
Update to MediaWiki 1.22.15
Diffstat (limited to 'thumb.php')
-rw-r--r--thumb.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/thumb.php b/thumb.php
index 913adc18..dc3093c0 100644
--- a/thumb.php
+++ b/thumb.php
@@ -131,12 +131,12 @@ function wfStreamThumb( array $params ) {
// Format is <timestamp>!<name>
$bits = explode( '!', $fileName, 2 );
if ( count( $bits ) != 2 ) {
- wfThumbError( 404, wfMessage( 'badtitletext' )->text() );
+ wfThumbError( 404, wfMessage( 'badtitletext' )->parse() );
return;
}
$title = Title::makeTitleSafe( NS_FILE, $bits[1] );
if ( !$title ) {
- wfThumbError( 404, wfMessage( 'badtitletext' )->text() );
+ wfThumbError( 404, wfMessage( 'badtitletext' )->parse() );
return;
}
$img = RepoGroup::singleton()->getLocalRepo()->newFromArchiveName( $title, $fileName );
@@ -146,7 +146,7 @@ function wfStreamThumb( array $params ) {
// Check the source file title
if ( !$img ) {
- wfThumbError( 404, wfMessage( 'badtitletext' )->text() );
+ wfThumbError( 404, wfMessage( 'badtitletext' )->parse() );
return;
}
@@ -306,7 +306,7 @@ function wfStreamThumb( array $params ) {
$user = RequestContext::getMain()->getUser();
if ( $user->pingLimiter( 'renderfile' ) ) {
- wfThumbError( 500, wfMessage( 'actionthrottledtext' ) );
+ wfThumbError( 500, wfMessage( 'actionthrottledtext' )->parse() );
return;
}
@@ -452,7 +452,7 @@ function wfExtractThumbParams( $file, $params ) {
* Output a thumbnail generation error message
*
* @param $status integer
- * @param $msg string
+ * @param string $msg HTML
* @return void
*/
function wfThumbError( $status, $msg ) {