From 8609a52a769cf0179a085c5e4ef91a04329f46cc Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 9 Jul 2007 22:12:55 +0000 Subject: [PATCH] Okay, use named constants that are actually equivalent to what they replace. But still use named constants. (Thanks, Raymond) --- includes/UserMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index fc8bbbdbbb..9c3e1503a1 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -240,7 +240,7 @@ class EmailNotification { global $wgEnotifUseJobQ; global $wgEnotifWatchlist, $wgShowUpdatedMarker; - if( $title->getNamespace() == NS_SPECIAL ) + if( in_array( $title->getNamespace(), array(NS_SPECIAL, NS_MEDIA) ) ) return; if ($wgEnotifUseJobQ) { -- 2.20.1