diff --git a/includes/Linker.php b/includes/Linker.php
index 2274ff54bb1..61d8b838507 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -629,7 +629,7 @@ class Linker {
static function makeThumbLink2( Title $title, $file, $frameParams = array(),
$handlerParams = array(), $time = false, $query = "" )
{
- global $wgStylePath;
+ global $wgStylePath, $wgContLang;
$exists = $file && $file->exists();
# Shortcuts
@@ -707,11 +707,16 @@ class Linker {
if ( isset( $fp['framed'] ) ) {
$zoomIcon = "";
} else {
- $zoomIcon = '
';
+ $zoomIcon = Html::rawElement( 'div', array( 'class' => 'magnify' ),
+ Html::rawElement( 'a', array(
+ 'href' => $url,
+ 'class' => 'internal',
+ 'title' => wfMsg( 'thumbnail-more' ) ),
+ Html::element( 'img', array(
+ 'src' => $wgStylePath . '/common/images/magnify-clip' . ( $wgContLang->isRTL() ? '-rtl' : '' ) . '.png',
+ 'width' => 15,
+ 'height' => 11,
+ 'alt' => "" ) ) ) );
}
}
$s .= ' ' . $zoomIcon . $fp['caption'] . "
";
diff --git a/skins/common/images/magnify-clip-rtl.png b/skins/common/images/magnify-clip-rtl.png
new file mode 100644
index 00000000000..8398a82c9e5
Binary files /dev/null and b/skins/common/images/magnify-clip-rtl.png differ