Add "check" parameter to action=email
[lhc/web/wiklou.git] / includes / OutputPage.php
index 1386730..0513f14 100644 (file)
@@ -409,6 +409,7 @@ class OutputPage {
                        $sk = $wgUser->getSkin();
                        foreach ( $categories as $category => $type ) {
                                $title = Title::makeTitleSafe( NS_CATEGORY, $category );
+                               $wgContLang->findVariantLink( $category, $title );
                                $text = $wgContLang->convertHtml( $title->getText() );
                                $this->mCategoryLinks[$type][] = $sk->makeLinkObj( $title, $text );
                        }
@@ -1541,21 +1542,6 @@ class OutputPage {
                        $tags[] = Xml::element( 'link', $tag );
                }
 
-               // Language Links
-               global $wgContLang;
-               $langLinks = $this->getLanguageLinks();
-               foreach( $langLinks as $link ) {
-                       $t = Title::newFromText( $link );
-                       $tags[] = Xml::element( 'link', array(
-                                       'title' => wfMsg( 'language-link-title', $wgContLang->getLanguageName( $t->getInterwiki() ) ),
-                                       'rel' => 'alternate',
-                                       'lang' => $t->getInterwiki(),
-                                       'xml:lang' => $t->getInterwiki(),
-                                       'hreflang' => $t->getInterwiki(),
-                                       'href' => $t->getFullURL()
-                               ) );
-               }
-
                if( $wgFeed ) {
                        global $wgTitle;
                        foreach( $this->getSyndicationLinks() as $format => $link ) {