From: Aryeh Gregor Date: Mon, 9 Jul 2007 22:12:55 +0000 (+0000) Subject: Okay, use named constants that are actually equivalent to what they replace. But... X-Git-Tag: 1.31.0-rc.0~52176 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=8609a52a769cf0179a085c5e4ef91a04329f46cc;p=lhc%2Fweb%2Fwiklou.git Okay, use named constants that are actually equivalent to what they replace. But still use named constants. (Thanks, Raymond) --- 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) {