r1607 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1606‎ | r1607 | r1608 >
Date:06:11, 30 August 2003
Author:vibber
Status:old
Tags:
Comment:
Update cache validation timestamp on logs when we update them
Modified paths:
  • /trunk/phase3/includes/LogPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogPage.php
@@ -60,12 +60,13 @@
6161 $won = wfInvertTimestamp( $now );
6262 if($this->mId == 0) {
6363 $sql = "INSERT INTO cur (cur_timestamp,cur_user,cur_user_text,
64 - cur_namespace,cur_title,cur_text,cur_comment,cur_restrictions,inverse_timestamp)
 64+ cur_namespace,cur_title,cur_text,cur_comment,cur_restrictions,
 65+ inverse_timestamp,cur_touched)
6566 VALUES ('{$now}', {$uid}, '{$ut}', " .
6667 Namespace::getWikipedia() . ", '" .
6768 wfStrencode( $this->mTitle ) . "', '" .
6869 wfStrencode( $this->mContent ) . "', '" .
69 - wfStrencode( $this->mComment ) . "', 'sysop', '{$won}')";
 70+ wfStrencode( $this->mComment ) . "', 'sysop', '{$won}','{$now}')";
7071 wfQuery( $sql, $fname );
7172 $this->mId = wfInsertId();
7273 } else {
@@ -73,7 +74,7 @@
7475 "cur_user={$uid}, cur_user_text='{$ut}', " .
7576 "cur_text='" . wfStrencode( $this->mContent ) . "', " .
7677 "cur_comment='" . wfStrencode( $this->mComment ) . "', " .
77 - "cur_restrictions='sysop', inverse_timestamp='{$won}' " .
 78+ "cur_restrictions='sysop', inverse_timestamp='{$won}', cur_touched='{$now}' " .
7879 "WHERE cur_id={$this->mId}";
7980 wfQuery( $sql, $fname );
8081 }

Status & tagging log