mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-23 22:33:48 +00:00
Remove reference to rev_text_id
Bug: T233357 Change-Id: I58559f14c9f732767439da397c22074249f97762
This commit is contained in:
parent
af2d738aff
commit
7f823dfccb
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue