From 82090e2673f44aea18a205ee3cf9deb04bd91c80 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Wed, 22 Apr 2020 12:24:27 +0100
Subject: [PATCH] Bug 24183: (RM follow-up) Remove re-introduced UseKohaPlugins

We removed UseKohaPlugins in bug 20415 but incidentally added a
reference to it bug 24183. This patch corrects that error.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
 misc/cronjobs/process_message_queue.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/cronjobs/process_message_queue.pl b/misc/cronjobs/process_message_queue.pl
index 73cbc9a7ac..33a8cf3466 100755
--- a/misc/cronjobs/process_message_queue.pl
+++ b/misc/cronjobs/process_message_queue.pl
@@ -70,7 +70,7 @@ die $usage if $help;
 
 cronlogaction();
 
-if ( C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins") ) {
+if ( C4::Context->config("enable_plugins") ) {
     my @plugins = Koha::Plugins->new->GetPlugins({
         method => 'before_send_messages',
     });
-- 
2.20.1