From: Aryeh Gregor Date: Mon, 9 Jul 2007 21:16:58 +0000 (+0000) Subject: Magic numbers are evil, use named constants. X-Git-Tag: 1.31.0-rc.0~52178 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=1c8ab4afee68da35dffeb4d309ff15ac6742cc41;p=lhc%2Fweb%2Fwiklou.git Magic numbers are evil, use named constants. --- diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 6e6bbf0cf4..fc8bbbdbbb 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -240,7 +240,7 @@ class EmailNotification { global $wgEnotifUseJobQ; global $wgEnotifWatchlist, $wgShowUpdatedMarker; - if( $title->getNamespace() < 0 ) + if( $title->getNamespace() == NS_SPECIAL ) return; if ($wgEnotifUseJobQ) {