Tell regexp parser to use extra analysis on external link regexp;
[lhc/web/wiklou.git] / includes / SpecialDisambiguations.php
index b0a28ba..0243e05 100644 (file)
@@ -1,7 +1,20 @@
 <?php
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
 
+/**
+ *
+ */
 require_once('QueryPage.php');
 
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
 class DisambiguationsPage extends PageQueryPage {
 
        function getName() {
@@ -9,17 +22,21 @@ class DisambiguationsPage extends PageQueryPage {
        }
        
        function isExpensive( ) { return true; }
+       function isSyndicated() { return false; }
 
        function getPageHeader( ) {
+               global $wgUser;
+               $sk = $wgUser->getSkin();
+               
                #FIXME : probably need to add a backlink to the maintenance page.
-               return '<p>'.wfMsg("disambiguationstext", wfMsg("disambiguationspage"))."</p><br>\n";
+               return '<p>'.wfMsg("disambiguationstext", $sk->makeKnownLink(wfMsgForContent('disambiguationspage')) )."</p><br>\n";
        }
 
        function getSQL() {
                $dbr =& wfGetDB( DB_SLAVE );
                extract( $dbr->tableNames( 'cur', 'links' ) );
                
-               $dp = Title::newFromText(wfMsg("disambiguationspage"));
+               $dp = Title::newFromText(wfMsgForContent("disambiguationspage"));
                $dpid = $dp->getArticleID();
                        
                $sql = "SELECT ca.cur_namespace AS ns_art, ca.cur_title AS title_art,"
@@ -38,8 +55,8 @@ class DisambiguationsPage extends PageQueryPage {
        }
        
        function formatResult( $skin, $result ) {
-               global $wgLang ;
-               $ns = $wgLang->getNamespaces() ;
+               global $wgContLang ;
+               $ns = $wgContLang->getNamespaces() ;
 
                $from = $skin->makeKnownLink( $ns[$result->ns_art].':'.$result->title_art ,'');
                $edit = $skin->makeBrokenLink( $ns[$result->ns_art].':'.$result->title_art , "(".wfMsg("qbedit").")" , 'redirect=no');
@@ -49,6 +66,9 @@ class DisambiguationsPage extends PageQueryPage {
        }
 }
 
+/**
+ * Constructor
+ */
 function wfSpecialDisambiguations() {
        list( $limit, $offset ) = wfCheckLimits();