From: Domas Mituzas Date: Tue, 21 Mar 2006 21:21:06 +0000 (+0000) Subject: use proper user specification for offsets, fixes newbie issue X-Git-Tag: 1.6.0~174 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=c78be4a19f775476381b6ecdc6beaa23ef2d4990;p=lhc%2Fweb%2Fwiklou.git use proper user specification for offsets, fixes newbie issue --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index f627ca6825..80dab948e4 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -83,8 +83,7 @@ class contribs_finder { $sql = "SELECT rev_timestamp FROM $page, $revision $use_index " . "WHERE page_id = rev_page AND rev_timestamp > '" . $this->offset . "' AND " . - "rev_user_text = " . $this->dbr->addQuotes($this->username) - . $nscond; + $usercond . $nscond; $sql .= " ORDER BY rev_timestamp ASC"; $sql = $this->dbr->limitResult($sql, $this->limit, 0); $res = $this->dbr->query($sql); @@ -102,8 +101,7 @@ class contribs_finder { $nscond = $this->get_namespace_cond(); $sql = "SELECT rev_timestamp FROM $page, $revision $use_index " . "WHERE page_id = rev_page AND " . - "rev_user_text = " . $this->dbr->addQuotes($this->username) - . $nscond; + $usercond . $nscond; $sql .= " ORDER BY rev_timestamp ASC"; $sql = $this->dbr->limitResult($sql, $this->limit, 0); $res = $this->dbr->query($sql);