From d23e91288417686e0cebbbabd86a789acd7d1502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sat, 11 Nov 2023 00:29:25 +0100 Subject: [PATCH] Use expression builder instead of addQuotes() Bug: T350992 Change-Id: Ide2edebf979a21628aa5832d6ac8774fc55310f6 --- includes/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index e4852e220f..519bd8e49d 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -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' ) ) ) ] )