http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73823

Revision: 73823
Author:   kaldari
Date:     2010-09-27 19:50:05 +0000 (Mon, 27 Sep 2010)

Log Message:
-----------
using strict comparison per comment at r73266

Modified Paths:
--------------
    trunk/extensions/CentralNotice/SpecialBannerAllocation.php

Modified: trunk/extensions/CentralNotice/SpecialBannerAllocation.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialBannerAllocation.php  2010-09-27 
19:39:45 UTC (rev 73822)
+++ trunk/extensions/CentralNotice/SpecialBannerAllocation.php  2010-09-27 
19:50:05 UTC (rev 73823)
@@ -63,7 +63,7 @@
                $htmlOut .= Xml::openElement( 'td' );
                $htmlOut .= Xml::openElement( 'select', array( 'name' => 
'project' ) );
                foreach ( $wgNoticeProjects as $value ) {
-                       $htmlOut .= Xml::option( $value, $value, $value == 
$this->project );
+                       $htmlOut .= Xml::option( $value, $value, $value === 
$this->project );
                }
                $htmlOut .= Xml::closeElement( 'select' );
                $htmlOut .= Xml::closeElement( 'td' );
@@ -79,7 +79,7 @@
                ksort( $languages );
                $htmlOut .= Xml::openElement( 'select', array( 'name' => 
'language' ) );
                foreach( $languages as $code => $name ) {
-                       $htmlOut .= Xml::option( wfMsg( 
'centralnotice-language-listing', $code, $name ), $code, $code == 
$this->language );
+                       $htmlOut .= Xml::option( wfMsg( 
'centralnotice-language-listing', $code, $name ), $code, $code === 
$this->language );
                }
                $htmlOut .= Xml::closeElement( 'select' );
                $htmlOut .= Xml::closeElement( 'td' );
@@ -90,7 +90,7 @@
                $countries = CentralNoticeDB::getCountriesList();
                $htmlOut .= Xml::openElement( 'select', array( 'name' => 
'country' ) );
                foreach( $countries as $code => $name ) {
-                       $htmlOut .= Xml::option( $name, $code, $code == 
$this->location );
+                       $htmlOut .= Xml::option( $name, $code, $code === 
$this->location );
                }
                $htmlOut .= Xml::closeElement( 'select' );
                $htmlOut .= Xml::closeElement( 'td' );



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to