From ef502ed0ef3f0a107d58fa6daba6fd2d9ec1f533 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Wed, 7 Jan 2015 10:26:29 -0800 Subject: [PATCH] Test if 'EventLogging' class exists, rather than deprecated function efLogServerSideEvent() is deprecated and will be removed soon. Change-Id: I79969b443e59a36a6d92ad33b3df98fb21f7f3b6 --- Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hooks.php b/Hooks.php index 25b52587a..c0483993a 100644 --- a/Hooks.php +++ b/Hooks.php @@ -20,7 +20,7 @@ class EchoHooks { wfRunHooks( 'BeforeCreateEchoEvent', array( &$wgEchoNotifications, &$wgEchoNotificationCategories, &$wgEchoNotificationIcons ) ); // turn schema off if eventLogging is not enabled - if ( !function_exists( 'efLogServerSideEvent' ) ) { + if ( !class_exists( 'EventLogging' ) ) { foreach ( $wgEchoConfig['eventlogging'] as $schema => $property ) { if ( $property['enabled'] ) { $wgEchoConfig['eventlogging'][$schema]['enabled'] = false;