mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 18:58:42 +00:00
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:
parent
90110f53b1
commit
53dd7de095
|
@ -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' ),
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue