Index: trunk/extensions/CentralNotice/SpecialBannerAllocation.php |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | $htmlOut .= Xml::openElement( 'td' ); |
65 | 65 | $htmlOut .= Xml::openElement( 'select', array( 'name' => 'project' ) ); |
66 | 66 | foreach ( $wgNoticeProjects as $value ) { |
67 | | - $htmlOut .= Xml::option( $value, $value, $value == $this->project ); |
| 67 | + $htmlOut .= Xml::option( $value, $value, $value === $this->project ); |
68 | 68 | } |
69 | 69 | $htmlOut .= Xml::closeElement( 'select' ); |
70 | 70 | $htmlOut .= Xml::closeElement( 'td' ); |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | ksort( $languages ); |
81 | 81 | $htmlOut .= Xml::openElement( 'select', array( 'name' => 'language' ) ); |
82 | 82 | foreach( $languages as $code => $name ) { |
83 | | - $htmlOut .= Xml::option( wfMsg( 'centralnotice-language-listing', $code, $name ), $code, $code == $this->language ); |
| 83 | + $htmlOut .= Xml::option( wfMsg( 'centralnotice-language-listing', $code, $name ), $code, $code === $this->language ); |
84 | 84 | } |
85 | 85 | $htmlOut .= Xml::closeElement( 'select' ); |
86 | 86 | $htmlOut .= Xml::closeElement( 'td' ); |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | $countries = CentralNoticeDB::getCountriesList(); |
92 | 92 | $htmlOut .= Xml::openElement( 'select', array( 'name' => 'country' ) ); |
93 | 93 | foreach( $countries as $code => $name ) { |
94 | | - $htmlOut .= Xml::option( $name, $code, $code == $this->location ); |
| 94 | + $htmlOut .= Xml::option( $name, $code, $code === $this->location ); |
95 | 95 | } |
96 | 96 | $htmlOut .= Xml::closeElement( 'select' ); |
97 | 97 | $htmlOut .= Xml::closeElement( 'td' ); |