From cc1d8b18d100c023cee2153ebea45babda4b7d9a Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sun, 27 Sep 2009 00:53:07 +0000 Subject: [PATCH] I take 5% of blame for this idiocy --- includes/specials/SpecialMostlinked.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialMostlinked.php b/includes/specials/SpecialMostlinked.php index 346bcbc0df..e8d1bcddd8 100644 --- a/includes/specials/SpecialMostlinked.php +++ b/includes/specials/SpecialMostlinked.php @@ -22,9 +22,6 @@ class MostlinkedPage extends QueryPage { function isExpensive() { return true; } function isSyndicated() { return false; } - /** - * Note: Getting page_namespace only works if $this->isCached() is false - */ function getSQL() { $dbr = wfGetDB( DB_SLAVE ); list( $pagelinks, $page ) = $dbr->tableNamesN( 'pagelinks', 'page' ); @@ -32,11 +29,10 @@ class MostlinkedPage extends QueryPage { "SELECT 'Mostlinked' AS type, pl_namespace AS namespace, pl_title AS title, - COUNT(*) AS value, - page_namespace + COUNT(*) AS value FROM $pagelinks LEFT JOIN $page ON pl_namespace=page_namespace AND pl_title=page_title - GROUP BY pl_namespace, pl_title, page_namespace + GROUP BY pl_namespace, pl_title HAVING COUNT(*) > 1"; } -- 2.20.1