Bartosz Dziewoński has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/159370

Change subject: Remove usage of spinner.gif
......................................................................

Remove usage of spinner.gif

Use .mw-small-spinner class instead, which isn't exactly a recommented
interface, but it's not deprecated either and it's easy to replace
here.

Bug: 70615
Change-Id: I753ec1f1e5464a751c7c20481ae49a07cba1d7c4
---
M includes/pages/ListPage.php
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll 
refs/changes/70/159370/1

diff --git a/includes/pages/ListPage.php b/includes/pages/ListPage.php
index 13df424..7e8eeeb 100644
--- a/includes/pages/ListPage.php
+++ b/includes/pages/ListPage.php
@@ -12,7 +12,7 @@
         * @param $params array Array of subpage parameters.
         */
        function execute( $params ) {
-               global $wgOut, $wgUser, $wgStylePath;
+               global $wgOut, $wgUser;
 
                if ( !count( $params ) ) {
                        $wgOut->addWikiMsg( 'securepoll-too-few-params' );
@@ -43,7 +43,6 @@
                        $msgCancel = wfMsgHtml( 'securepoll-strike-cancel' );
                        $msgReason = wfMsgHtml( 'securepoll-strike-reason' );
                        $encAction = htmlspecialchars( 
$this->getTitle()->getLocalUrl() );
-                       $encSpinner = htmlspecialchars( 
"$wgStylePath/common/images/spinner.gif" );
                        $script = Skin::makeVariablesScript( array(
                                'securepoll_strike_button' => wfMsg( 
'securepoll-strike-button' ),
                                'securepoll_unstrike_button' => wfMsg( 
'securepoll-unstrike-button' )
@@ -67,7 +66,7 @@
 </p>
 </form>
 <div id="securepoll-strike-result"></div>
-<div id="securepoll-strike-spinner"><img src="$encSpinner"/></div>
+<div id="securepoll-strike-spinner" class="mw-small-spinner"></div>
 </div>
 EOT
                        );

-- 
To view, visit https://gerrit.wikimedia.org/r/159370
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I753ec1f1e5464a751c7c20481ae49a07cba1d7c4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to