mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Test if 'EventLogging' class exists, rather than deprecated function
efLogServerSideEvent() is deprecated and will be removed soon. Change-Id: I79969b443e59a36a6d92ad33b3df98fb21f7f3b6
This commit is contained in:
parent
4fdae24555
commit
ef502ed0ef
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue