<?php
/**
- * Special page for listing the articles with the fewest revisions.
- *
- * @package MediaWiki
+ * Special page for listing the articles with the fewest revisions.
+ *
* @addtogroup SpecialPage
- * @author Martin Drashkov
+ * @author Martin Drashkov
*/
class FewestrevisionsPage extends QueryPage {
function getName() {
return 'Fewestrevisions';
}
-
+
function isExpensive() {
return true;
}
-
+
function isSyndicated() {
return false;
}
function getSql() {
$dbr = wfGetDB( DB_SLAVE );
list( $revision, $page ) = $dbr->tableNamesN( 'revision', 'page' );
-
+
return "SELECT 'Fewestrevisions' as type,
page_namespace as namespace,
page_title as title,
GROUP BY 1,2,3
HAVING COUNT(*) > 1";
}
-
+
function sortDescending() {
- return false;
+ return false;
}
function formatResult( $skin, $result ) {
$frp->doQuery( $offset, $limit );
}
-?>
+