Thread:Extension talk:Push/File push fails if there is ony ONE embedded file/reply (3)

There is an error in function setButtonToImgPush in ext.push.tab.js (line 296). Change this to: function setButtonToImgPush( button, pages, targetUrl, targetName ) { var images = window.wgPushPageFiles.concat( window.wgPushTemplateFiles ); var hasImages = images.length > 0; // Check for images before image.pop is called var currentFile = images.pop; if ( hasImages && $('#checkIncFiles').length != 0 && $('#checkIncFiles').attr('checked') ) { button.innerHTML = mw.msg( 'push-button-pushing-files' ); initiateImagePush( button, pages, targetUrl, targetName, images, currentFile ); }		else { initiatePush( button, pages, targetUrl, targetName ); }	}