Index: trunk/extensions/SemanticMaps/includes/services/OpenLayers/jquery.openlayersinput.js |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | |
32 | 32 | var text = coord.dms( normalProjectionLocation.lat, normalProjectionLocation.lon ); |
33 | 33 | |
34 | | - if ( title != '' ) { |
| 34 | + if ( title !== '' ) { |
35 | 35 | text = '<b>' + title + '</b><hr />' + text; |
36 | 36 | } |
37 | 37 | |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | this.projectAndShowLocation( new OpenLayers.LonLat( coordinate.lon, coordinate.lat ), '' ); |
62 | 62 | }; |
63 | 63 | |
64 | | - if ( options.geonamesusername != '' ) { |
| 64 | + if ( options.geonamesusername !== '' ) { |
65 | 65 | this.geocodeAddress = function( address ) { |
66 | 66 | $.getJSON( |
67 | 67 | 'http://api.geonames.org/searchJSON?callback=?', |
Index: trunk/extensions/SemanticMaps/includes/SM_GeoCoordsValue.php |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | |
80 | 80 | $comparator = SMW_CMP_EQ; |
81 | 81 | |
82 | | - if ( $value == '' ) { |
| 82 | + if ( $value === '' ) { |
83 | 83 | $this->addError( wfMsg( 'smw_novalues' ) ); |
84 | 84 | } else { |
85 | 85 | SMWDataValue::prepareValue( $value, $comparator ); |
Index: trunk/extensions/SemanticMaps/includes/forminputs/jquery.mapforminput.js |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | } ); |
92 | 92 | |
93 | 93 | this.geofield.blur( function() { |
94 | | - if ( this.value == '' ) { |
| 94 | + if ( this.value === '' ) { |
95 | 95 | this.value = mw.msg( 'semanticmaps_enteraddresshere' ); |
96 | 96 | $( this ).css( 'color', 'darkgray' ); |
97 | 97 | } |
Index: trunk/extensions/SemanticMaps/includes/forminputs/SM_FormInputs.php |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | // Add the form input hook for the service. |
87 | 87 | $field_args = array(); |
88 | 88 | |
89 | | - if ( $mainName != '' ) { |
| 89 | + if ( $mainName !== '' ) { |
90 | 90 | $field_args['service_name'] = $mainName; |
91 | 91 | } |
92 | 92 | |
Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_MapPrinter.php |
— | — | @@ -275,7 +275,7 @@ |
276 | 276 | $jsonObj['title'] = $parser->parse( $jsonObj['title'], $parser->getTitle(), new ParserOptions() )->getText(); |
277 | 277 | $jsonObj['text'] = $parser->parse( $jsonObj['text'], $parser->getTitle(), new ParserOptions() )->getText(); |
278 | 278 | |
279 | | - $hasTitleAndtext = $jsonObj['title'] != '' && $jsonObj['text'] != ''; |
| 279 | + $hasTitleAndtext = $jsonObj['title'] !== '' && $jsonObj['text'] !== ''; |
280 | 280 | $jsonObj['text'] = ( $hasTitleAndtext ? '<b>' . $jsonObj['title'] . '</b><hr />' : $jsonObj['title'] ) . $jsonObj['text']; |
281 | 281 | $jsonObj['title'] = strip_tags( $jsonObj['title'] ); |
282 | 282 | |
Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_QueryHandler.php |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | * @param string $template |
134 | 134 | */ |
135 | 135 | public function setTemplate( $template ) { |
136 | | - $this->template = $template == '' ? false : $template; |
| 136 | + $this->template = $template === '' ? false : $template; |
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
— | — | @@ -285,7 +285,7 @@ |
286 | 286 | } |
287 | 287 | } |
288 | 288 | |
289 | | - if ( count( $properties ) > 0 && $text != '' ) { |
| 289 | + if ( count( $properties ) > 0 && $text !== '' ) { |
290 | 290 | $text .= $this->subjectSeparator; |
291 | 291 | } |
292 | 292 | |
— | — | @@ -329,7 +329,7 @@ |
330 | 330 | if ( $this->titleLinkSeperate ) { |
331 | 331 | $txt = $object->getTitle()->getText(); |
332 | 332 | |
333 | | - if ( $this->pageLinkText != '' ) { |
| 333 | + if ( $this->pageLinkText !== '' ) { |
334 | 334 | $txt = str_replace( '$1', $txt, $this->pageLinkText ); |
335 | 335 | } |
336 | 336 | $text .= Html::element( |
— | — | @@ -405,7 +405,7 @@ |
406 | 406 | $propertyValue = $object->getLongText( $this->outputmode, $wgUser->getSkin() ); |
407 | 407 | } |
408 | 408 | |
409 | | - return $propertyName . ( $propertyName == '' ? '' : ': ' ) . $propertyValue; |
| 409 | + return $propertyName . ( $propertyName === '' ? '' : ': ' ) . $propertyValue; |
410 | 410 | } |
411 | 411 | |
412 | 412 | /** |
— | — | @@ -483,7 +483,7 @@ |
484 | 484 | } |
485 | 485 | } |
486 | 486 | } // Icon can be set even for regular, non-compound queries If it is, though, we have to translate the name into a URL here |
487 | | - elseif ( $this->icon != '' ) { |
| 487 | + elseif ( $this->icon !== '' ) { |
488 | 488 | $icon = MapsMapper::getFileUrl( $this->icon ); |
489 | 489 | } |
490 | 490 | |