Remove reference to rev_text_id

Bug: T233357
Change-Id: I58559f14c9f732767439da397c22074249f97762
This commit is contained in:
Clara Andrew-Wani 2019-09-20 09:10:13 -04:00
parent af2d738aff
commit 7f823dfccb

View file

@ -35,7 +35,7 @@ class ReplaceTextSearch {
$search, $namespaces, $category, $prefix, $use_regex = false
) {
$dbr = wfGetDB( DB_REPLICA );
$tables = [ 'page', 'revision', 'text' ];
$tables = [ 'page', 'revision', 'text', 'slots', 'content' ];
$vars = [ 'page_id', 'page_namespace', 'page_title', 'old_text' ];
if ( $use_regex ) {
$comparisonCond = self::regexCond( $dbr, 'old_text', $search );
@ -47,7 +47,9 @@ class ReplaceTextSearch {
$comparisonCond,
'page_namespace' => $namespaces,
'rev_id = page_latest',
'rev_text_id = old_id'
'rev_id = slot_revision_id',
'slot_content_id = content_id',
'SUBSTRING(content_address, 4) = old_id'
];
self::categoryCondition( $category, $tables, $conds );