From: Antoine Musso Date: Sun, 10 Jul 2005 21:09:50 +0000 (+0000) Subject: typo, exclude the disamb link as articles obviously point to it X-Git-Tag: 1.5.0beta4~169 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=0f2cdb45939426b0052b89ba3e73ead30d3dde73;p=lhc%2Fweb%2Fwiklou.git typo, exclude the disamb link as articles obviously point to it --- diff --git a/includes/SpecialDisambiguations.php b/includes/SpecialDisambiguations.php index aa45382f15..b227ba6642 100644 --- a/includes/SpecialDisambiguations.php +++ b/includes/SpecialDisambiguations.php @@ -46,10 +46,11 @@ class DisambiguationsPage extends PageQueryPage { . " FROM {$pagelinks} AS la, {$pagelinks} AS lb," . " {$page} AS pa, {$page} AS pb" . " WHERE pb.page_namespace = $dns" - . " AND pb.page_title = $dtitle" # disambiguation pages - . " AND lb.pl_title = pb.page_title" # title of pages that are disamb - . " AND pa.page_id = lb.pl_from" # id of page poiting to a disamb - . " AND la.pl_title = pa.page_title"; # title of those + . " AND pb.page_title = $dtitle" # disambiguation pages + . " AND lb.pl_title = pb.page_title" # title of pages that are disamb + . " AND pa.page_id = lb.pl_from" # id of page pointing to a disamb + . " AND la.pl_title != $dtitle" # exclude the link + . " AND la.pl_title = pa.page_title "; # title of those return $sql; }