From: Greg Sabino Mullane Date: Wed, 14 May 2008 17:44:05 +0000 (+0000) Subject: Don't attempt to store the page_id in recentchanges table if we are deleting. X-Git-Tag: 1.31.0-rc.0~47630 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=9772421df819158550f2bf3cd589050faa99ce8f;p=lhc%2Fweb%2Fwiklou.git Don't attempt to store the page_id in recentchanges table if we are deleting. --- diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 19f39ddfbc..1fe814ea61 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -283,7 +283,7 @@ class RecentChange 'rc_title' => $title->getDBkey(), 'rc_type' => RC_EDIT, 'rc_minor' => $minor ? 1 : 0, - 'rc_cur_id' => $title->getArticleID(), + 'rc_cur_id' => $action === 'delete' ? 0 : $target->getArticleID(), 'rc_user' => $user->getID(), 'rc_user_text' => $user->getName(), 'rc_comment' => $comment,