r34818 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34817‎ | r34818 | r34819 >
Date:17:44, 14 May 2008
Author:greg
Status:old
Tags:
Comment:
Don't attempt to store the page_id in recentchanges table if we are deleting.
Modified paths:
  • /trunk/phase3/includes/RecentChange.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/RecentChange.php
@@ -283,7 +283,7 @@
284284 'rc_title' => $title->getDBkey(),
285285 'rc_type' => RC_EDIT,
286286 'rc_minor' => $minor ? 1 : 0,
287 - 'rc_cur_id' => $title->getArticleID(),
 287+ 'rc_cur_id' => $action === 'delete' ? 0 : $target->getArticleID(),
288288 'rc_user' => $user->getID(),
289289 'rc_user_text' => $user->getName(),
290290 'rc_comment' => $comment,

Follow-up revisions

RevisionCommit summaryAuthorDate
r34832revert r34818 -- badbrion21:56, 14 May 2008

Status & tagging log