If you call function wfGetIP, it might help to implement it first ;-)
[lhc/web/wiklou.git] / includes / SpecialWantedpages.php
index 7fd09db..e345703 100644 (file)
@@ -24,6 +24,7 @@ class WantedPagesPage extends QueryPage {
        function isExpensive() {
                return true;
        }
+       function isSyndicated() { return false; }
 
        function getSQL() {
                $dbr =& wfGetDB( DB_SLAVE );
@@ -39,17 +40,11 @@ class WantedPagesPage extends QueryPage {
                                COUNT(DISTINCT bl_from) as value
                        FROM $brokenlinks
                        GROUP BY bl_to
-                       HAVING $agrvalue > 1
-                       ORDER BY $agrvalue ".
-                       ($this->sortDescending() ? 'DESC' : '');
+                       HAVING $agrvalue > 1";
        }
 
-        function getOrder() {
-                return '';
-        }
-
        function formatResult( $skin, $result ) {
-               global $wgLang;
+               global $wgContLang;
 
                $nt = Title::newFromDBkey( $result->title );
                if( is_null( $nt ) ) {
@@ -57,7 +52,7 @@ class WantedPagesPage extends QueryPage {
                }
                $plink = $skin->makeBrokenLink( $nt->getPrefixedText(), "" );
                $nl = wfMsg( "nlinks", $result->value );
-               $nlink = $skin->makeKnownLink( $wgLang->specialPage( "Whatlinkshere" ), $nl,
+               $nlink = $skin->makeKnownLink( $wgContLang->specialPage( "Whatlinkshere" ), $nl,
                  "target=" . $nt->getPrefixedURL() );
 
                return "{$plink} ({$nlink})";