Merge "Rename index type_action to log_type_action"
[lhc/web/wiklou.git] / includes / MediaWiki.php
index b11239a..a67cb9b 100644 (file)
@@ -90,7 +90,7 @@ class MediaWiki {
                        }
                        // Check variant links so that interwiki links don't have to worry
                        // about the possible different language variants
-                       if ( count( $wgContLang->getVariants() ) > 1
+                       if ( $wgContLang->hasVariants()
                                && !is_null( $ret ) && $ret->getArticleID() == 0
                        ) {
                                $wgContLang->findVariantLink( $title, $ret );