* Made special page names case-insensitive and localisable. Care has been taken to...
[lhc/web/wiklou.git] / includes / SpecialMostlinked.php
index 1791228..6f5f30d 100644 (file)
@@ -62,8 +62,8 @@ class MostlinkedPage extends QueryPage {
         * @return string
         */
        function makeWlhLink( &$title, $caption, &$skin ) {
-               $wlh = Title::makeTitle( NS_SPECIAL, 'Whatlinkshere' );
-               return $skin->makeKnownLinkObj( $wlh, $caption, 'target=' . $title->getPrefixedUrl() );
+               $wlh = SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedDBkey() );
+               return $skin->makeKnownLinkObj( $wlh, $caption );
        }
 
        /**