From: Domas Mituzas Date: Sun, 27 Sep 2009 00:53:07 +0000 (+0000) Subject: I take 5% of blame for this idiocy X-Git-Tag: 1.31.0-rc.0~39509 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=cc1d8b18d100c023cee2153ebea45babda4b7d9a;p=lhc%2Fweb%2Fwiklou.git I take 5% of blame for this idiocy --- 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"; }