Use expression builder instead of addQuotes()

Bug: T350992
Change-Id: Ide2edebf979a21628aa5832d6ac8774fc55310f6
This commit is contained in:
Bartosz Dziewoński 2023-11-11 00:29:25 +01:00
parent 89545d2b53
commit d23e912884

View file

@ -582,7 +582,7 @@ class Hooks implements
->field( '1' )
->where( [
'rev_actor' => $user->getActorId(),
'rev_timestamp < ' . $dbr->addQuotes( $dbr->timestamp(
$dbr->expr( 'rev_timestamp', '<', $dbr->timestamp(
$config->get( 'VisualEditorSingleEditTabSwitchTime' )
) )
] )