dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Show redirect fragments on Special:BrokenRedirects"
[lhc/web/wiklou.git]
/
maintenance
/
rebuildrecentchanges.php
diff --git
a/maintenance/rebuildrecentchanges.php
b/maintenance/rebuildrecentchanges.php
index
142a4e5
..
5df432e
100644
(file)
--- a/
maintenance/rebuildrecentchanges.php
+++ b/
maintenance/rebuildrecentchanges.php
@@
-156,9
+156,7
@@
class RebuildRecentchanges extends Maintenance {
'rc_this_oldid' => $row->rev_id,
'rc_last_oldid' => 0, // is this ok?
'rc_type' => $row->page_is_new ? RC_NEW : RC_EDIT,
'rc_this_oldid' => $row->rev_id,
'rc_last_oldid' => 0, // is this ok?
'rc_type' => $row->page_is_new ? RC_NEW : RC_EDIT,
- 'rc_source' => $row->page_is_new
- ? $dbw->addQuotes( RecentChange::SRC_NEW )
- : $dbw->addQuotes( RecentChange::SRC_EDIT )
+ 'rc_source' => $row->page_is_new ? RecentChange::SRC_NEW : RecentChange::SRC_EDIT
,
'rc_deleted' => $row->rev_deleted
],
,
'rc_deleted' => $row->rev_deleted
],
@@
-239,9
+237,7
@@
class RebuildRecentchanges extends Maintenance {
'rc_last_oldid' => $lastOldId,
'rc_new' => $new,
'rc_type' => $new ? RC_NEW : RC_EDIT,
'rc_last_oldid' => $lastOldId,
'rc_new' => $new,
'rc_type' => $new ? RC_NEW : RC_EDIT,
- 'rc_source' => $new === 1
- ? $dbw->addQuotes( RecentChange::SRC_NEW )
- : $dbw->addQuotes( RecentChange::SRC_EDIT ),
+ 'rc_source' => $new === 1 ? RecentChange::SRC_NEW : RecentChange::SRC_EDIT,
'rc_old_len' => $lastSize,
'rc_new_len' => $size,
],
'rc_old_len' => $lastSize,
'rc_new_len' => $size,
],
@@
-325,7
+321,7
@@
class RebuildRecentchanges extends Maintenance {
'rc_this_oldid' => 0,
'rc_last_oldid' => 0,
'rc_type' => RC_LOG,
'rc_this_oldid' => 0,
'rc_last_oldid' => 0,
'rc_type' => RC_LOG,
- 'rc_source' =>
$dbw->addQuotes( RecentChange::SRC_LOG )
,
+ 'rc_source' =>
RecentChange::SRC_LOG
,
'rc_cur_id' => $field->isNullable()
? $row->page_id
: (int)$row->page_id, // NULL => 0,
'rc_cur_id' => $field->isNullable()
? $row->page_id
: (int)$row->page_id, // NULL => 0,