From: umherirrender Date: Sun, 12 Jan 2014 12:43:45 +0000 (+0100) Subject: rebuildrecentchanges.php leaves some rc_source empty X-Git-Tag: 1.31.0-rc.0~17276^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=53ba5b276ae5bce0c1374d3b16012011ff7a2994;p=lhc%2Fweb%2Fwiklou.git rebuildrecentchanges.php leaves some rc_source empty Adding the missing field to some queries. Change-Id: I04b228b06d94b79fd488b370694cdf698d1901a6 --- diff --git a/maintenance/rebuildrecentchanges.php b/maintenance/rebuildrecentchanges.php index b9eb809cd1..2a9bb4fc61 100644 --- a/maintenance/rebuildrecentchanges.php +++ b/maintenance/rebuildrecentchanges.php @@ -144,6 +144,7 @@ class RebuildRecentchanges extends Maintenance { 'rc_last_oldid' => $lastOldId, 'rc_new' => $new, 'rc_type' => $new, + 'rc_source' => $new === 1 ? RecentChange::SRC_NEW : RecentChange::SRC_EDIT, 'rc_old_len' => $lastSize, 'rc_new_len' => $size, ), array( @@ -196,6 +197,7 @@ class RebuildRecentchanges extends Maintenance { 'rc_this_oldid' => 0, 'rc_last_oldid' => 0, 'rc_type' => RC_LOG, + 'rc_source' => $dbw->addQuotes( RecentChange::SRC_LOG ), 'rc_cur_id' => $dbw->cascadingDeletes() ? 'page_id' : 'COALESCE(page_id, 0)', 'rc_log_type' => 'log_type', 'rc_log_action' => 'log_action',