Drop references to magnify-clip-{ltr,rtl}.png file

This is now embedded via CSS in MediaWiki core's Linker as of 1.24wmf18.

Change-Id: Ib095740611de3f84f1aad229939b92d788b537c2
This commit is contained in:
James D. Forrester 2014-08-19 17:16:38 -07:00
parent 90110f53b1
commit 53dd7de095
2 changed files with 1 additions and 14 deletions

View file

@ -17,7 +17,7 @@ class VisualEditorHooks {
// parties who attempt to install VisualEditor onto non-alpha wikis, as
// this should have no impact on deploying to Wikimedia's wiki cluster;
// is fine for release tarballs because 1.22wmf11 < 1.22alpha < 1.22.0.
wfUseMW( '1.24wmf17' );
wfUseMW( '1.24wmf18' );
$coreConfig = ConfigFactory::getDefaultInstance()->makeConfig( 'main' );
$veConfig = ConfigFactory::getDefaultInstance()->makeConfig( 'visualeditor' );
@ -365,10 +365,6 @@ class VisualEditorHooks {
$vars['wgVisualEditor'] = array(
'isPageWatched' => $out->getUser()->isWatched( $out->getTitle() ),
// Same as in Linker.php
'magnifyClipIconURL' => $out->getConfig()->get( 'StylePath' ) .
'/common/images/magnify-clip' .
( $pageLanguage->isRTL() ? '-rtl' : '' ) . '.png',
'pageLanguageCode' => $pageLanguage->getHtmlCode(),
'pageLanguageDir' => $pageLanguage->getDir(),
'svgMaxSize' => $out->getConfig()->get( 'SVGMaxSize' ),

View file

@ -58,16 +58,7 @@ ve.ce.MWImageCaptionNode.prototype.buildMagnify = function () {
.addClass( 'magnify' );
this.$a = this.$( '<a>' )
.addClass( 'internal' )
// It's inside a protected node, so user can't see href/title anyways.
//.attr( 'href', '/wiki/File:Wiki.png' )
//.attr( 'title', 'Enlarge' )
.appendTo( this.$magnify );
this.$img = this.$( '<img>' )
.attr( 'src', mw.config.get( 'wgVisualEditor' ).magnifyClipIconURL )
.attr( 'width', 15 )
.attr( 'height', 11 )
//.attr( 'alt', '' )
.appendTo( this.$a );
};
/* Registration */