<?php
/**
+ * Special page for listing the articles with the fewest revisions.
*
- * Special page for listing the articles with the fewest revisions.
- *
* @package MediaWiki
- * @subpackage Special pages
- * @author Martin Drashkov
+ * @addtogroup SpecialPage
+ * @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 ) {
}
?>
-