Cleanup for r27897:
[lhc/web/wiklou.git] / includes / SpecialMostrevisions.php
index 906d4b7..9479a58 100644 (file)
@@ -2,8 +2,7 @@
 /**
  * A special page to show pages in the
  *
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
  *
  * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
  * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
@@ -11,8 +10,7 @@
  */
 
 /**
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
  */
 class MostrevisionsPage extends QueryPage {
 
@@ -21,8 +19,8 @@ class MostrevisionsPage extends QueryPage {
        function isSyndicated() { return false; }
 
        function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
-               extract( $dbr->tableNames( 'revision', 'page' ) );
+               $dbr = wfGetDB( DB_SLAVE );
+               list( $revision, $page ) = $dbr->tableNamesN( 'revision', 'page' );
                return
                        "
                        SELECT
@@ -38,17 +36,17 @@ class MostrevisionsPage extends QueryPage {
                        ";
        }
 
-       function formatResult( $result ) {
+       function formatResult( $skin, $result ) {
                global $wgLang, $wgContLang;
 
                $nt = Title::makeTitle( $result->namespace, $result->title );
                $text = $wgContLang->convert( $nt->getPrefixedText() );
 
-               $plink = Linker::makeKnownLinkObj( $nt, $text );
+               $plink = $skin->makeKnownLinkObj( $nt, $text );
 
                $nl = wfMsgExt( 'nrevisions', array( 'parsemag', 'escape'),
                        $wgLang->formatNum( $result->value ) );
-               $nlink = Linker::makeKnownLinkObj( $nt, $nl, 'action=history' );
+               $nlink = $skin->makeKnownLinkObj( $nt, $nl, 'action=history' );
 
                return wfSpecialList($plink, $nlink);
        }
@@ -65,4 +63,4 @@ function wfSpecialMostrevisions() {
        $wpp->doQuery( $offset, $limit );
 }
 
-?>
+