Index: branches/wmf-deployment/includes/specials/SpecialMostlinked.php |
— | — | @@ -26,7 +26,12 @@ |
27 | 27 | * Note: Getting page_namespace only works if $this->isCached() is false |
28 | 28 | */ |
29 | 29 | function getSQL() { |
| 30 | + global $wgMiserMode; |
| 31 | + |
30 | 32 | $dbr = wfGetDB( DB_SLAVE ); |
| 33 | + |
| 34 | + if ($wgMiserMode) { $cutoff = 100; } else { $cutoff = 1; } |
| 35 | + |
31 | 36 | list( $pagelinks, $page ) = $dbr->tableNamesN( 'pagelinks', 'page' ); |
32 | 37 | return |
33 | 38 | "SELECT 'Mostlinked' AS type, |
— | — | @@ -37,7 +42,7 @@ |
38 | 43 | FROM $pagelinks |
39 | 44 | LEFT JOIN $page ON pl_namespace=page_namespace AND pl_title=page_title |
40 | 45 | GROUP BY pl_namespace, pl_title, page_namespace |
41 | | - HAVING COUNT(*) > 1"; |
| 46 | + HAVING COUNT(*) > $cutoff"; |
42 | 47 | } |
43 | 48 | |
44 | 49 | /** |