Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -874,7 +874,9 @@ |
875 | 875 | var messageDiv = document.getElementById( 'mw-js-message' ); |
876 | 876 | if ( !messageDiv ) { |
877 | 877 | messageDiv = document.createElement( 'div' ); |
878 | | - if ( skin == 'vector' || skin == 'monobook' ) |
| 878 | + if ( document.getElementById( 'column-content' ) |
| 879 | + && document.getElementById( 'content' ) ) { |
| 880 | + // MonoBook, presumably |
879 | 881 | document.getElementById( 'content' ).insertBefore( |
880 | 882 | messageDiv, |
881 | 883 | document.getElementById( 'content' ).firstChild |
Index: trunk/phase3/skins/Vector.php |
— | — | @@ -316,7 +316,6 @@ |
317 | 317 | // Gets preferred variant |
318 | 318 | $preferred = $wgContLang->getPreferredVariant(); |
319 | 319 | // Loops over each variant |
320 | | - $vcount = 0; |
321 | 320 | foreach( $variants as $code ) { |
322 | 321 | // Gets variant name from language code |
323 | 322 | $varname = $wgContLang->getVariantname( $code ); |
— | — | @@ -326,12 +325,11 @@ |
327 | 326 | continue; |
328 | 327 | } |
329 | 328 | // Appends variant link |
330 | | - $links['variants'][$vcount] = array( |
| 329 | + $links['variants'][] = array( |
331 | 330 | 'class' => ( $code == $preferred ) ? 'selected' : false, |
332 | 331 | 'text' => $varname, |
333 | 332 | 'href' => $this->mTitle->getLocalURL( '', $code ) |
334 | 333 | ); |
335 | | - $vcount ++; |
336 | 334 | } |
337 | 335 | } |
338 | 336 | |