* ( bug 18264 ) upload-by-url form was still disabled in non-js2 form output
[lhc/web/wiklou.git] / includes / specials / SpecialWantedcategories.php
index 9a28301..5e5a4f1 100644 (file)
@@ -41,11 +41,17 @@ class WantedCategoriesPage extends WantedQueryPage {
                global $wgLang, $wgContLang;
 
                $nt = Title::makeTitle( $result->namespace, $result->title );
-               $text = $wgContLang->convert( $nt->getText() );
+               $text = htmlspecialchars( $wgContLang->convert( $nt->getText() ) );
 
                $plink = $this->isCached() ?
-                       $skin->makeLinkObj( $nt, htmlspecialchars( $text ) ) :
-                       $skin->makeBrokenLinkObj( $nt, htmlspecialchars( $text ) );
+                       $skin->link( $nt, $text ) :
+                       $skin->link(
+                               $nt,
+                               $text,
+                               array(),
+                               array(),
+                               array( 'broken' )
+                       );
 
                $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'),
                        $wgLang->formatNum( $result->value ) );