From bec44ccfba2f9ab704a06f94d9147da14f09062e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 30 Aug 2003 06:11:18 +0000 Subject: [PATCH] Update cache validation timestamp on logs when we update them --- includes/LogPage.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index bd8c928457..08ad054ee5 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -60,12 +60,13 @@ class LogPage { $won = wfInvertTimestamp( $now ); if($this->mId == 0) { $sql = "INSERT INTO cur (cur_timestamp,cur_user,cur_user_text, - cur_namespace,cur_title,cur_text,cur_comment,cur_restrictions,inverse_timestamp) + cur_namespace,cur_title,cur_text,cur_comment,cur_restrictions, + inverse_timestamp,cur_touched) VALUES ('{$now}', {$uid}, '{$ut}', " . Namespace::getWikipedia() . ", '" . wfStrencode( $this->mTitle ) . "', '" . wfStrencode( $this->mContent ) . "', '" . - wfStrencode( $this->mComment ) . "', 'sysop', '{$won}')"; + wfStrencode( $this->mComment ) . "', 'sysop', '{$won}','{$now}')"; wfQuery( $sql, $fname ); $this->mId = wfInsertId(); } else { @@ -73,7 +74,7 @@ class LogPage { "cur_user={$uid}, cur_user_text='{$ut}', " . "cur_text='" . wfStrencode( $this->mContent ) . "', " . "cur_comment='" . wfStrencode( $this->mComment ) . "', " . - "cur_restrictions='sysop', inverse_timestamp='{$won}' " . + "cur_restrictions='sysop', inverse_timestamp='{$won}', cur_touched='{$now}' " . "WHERE cur_id={$this->mId}"; wfQuery( $sql, $fname ); } -- 2.20.1