/**
* 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
*/
/**
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
*/
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
";
}
- 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);
}
$wpp->doQuery( $offset, $limit );
}
-?>
+