diff options
Diffstat (limited to 'Echo/includes/formatters/EchoIcon.php')
-rw-r--r-- | Echo/includes/formatters/EchoIcon.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Echo/includes/formatters/EchoIcon.php b/Echo/includes/formatters/EchoIcon.php index 5d1b186d..b7ccbde4 100644 --- a/Echo/includes/formatters/EchoIcon.php +++ b/Echo/includes/formatters/EchoIcon.php @@ -59,9 +59,7 @@ class EchoIcon { throw new InvalidArgumentException( "The $icon icon is not registered" ); } - $url = isset( $wgEchoNotificationIcons[ $icon ][ 'url' ] ) ? - $wgEchoNotificationIcons[ $icon ][ 'url' ] : - null; + $url = $wgEchoNotificationIcons[ $icon ][ 'url' ] ?? null; // If the defined URL is explicitly false, use placeholder if ( $url === false ) { |