Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -313,7 +313,7 @@ |
314 | 314 | |
315 | 315 | $lang = $wgLang->getCode(); |
316 | 316 | $dir = $wgLang->getDir(); |
317 | | - if ( $code !== $wgContLang->getCode() || $dir !== $wgContLang->getDir() ) { |
| 317 | + if ( $lang !== $wgContLang->getCode() || $dir !== $wgContLang->getDir() ) { |
318 | 318 | $attrs = "lang='$lang' xml:lang='$lang' dir='$dir'"; |
319 | 319 | |
320 | 320 | $tpl->set( 'userlangattributes', $attrs ); |