From: Brion Vibber Date: Tue, 8 Jul 2003 06:13:59 +0000 (+0000) Subject: Fix old bug in Newpages that grabbed latest version's comment field by mistake X-Git-Tag: 1.1.0~438 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=755aad04f282d225bdec3fcb9e2e720c65ccb2ec;p=lhc%2Fweb%2Fwiklou.git Fix old bug in Newpages that grabbed latest version's comment field by mistake --- diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index d6268e391c..ff3ece98b5 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -7,10 +7,10 @@ function wfSpecialNewpages() list( $limit, $offset ) = wfCheckLimits(); - $sql = "SELECT rc_title AS cur_title,rc_user AS cur_user,rc_user_text AS cur_user_text,cur_comment," . + $sql = "SELECT rc_title AS cur_title,rc_user AS cur_user,rc_user_text AS cur_user_text,rc_comment as cur_comment," . "rc_timestamp AS cur_timestamp,length(cur_text) as cur_length FROM recentchanges,cur " . - "WHERE rc_cur_id=cur_id AND rc_new=1 AND rc_namespace=0 AND cur_text NOT LIKE '#REDIRECT%' " . - " ORDER BY rc_timestamp DESC LIMIT {$offset}, {$limit}"; + "WHERE rc_cur_id=cur_id AND rc_new=1 AND rc_namespace=0 AND cur_is_redirect=0 " . + "ORDER BY rc_timestamp DESC LIMIT {$offset}, {$limit}"; $res = wfQuery( $sql, $fname ); $top = wfShowingResults( $offset, $limit );