Skip to content

Commit

Permalink
Fix method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 9, 2016
1 parent eef0682 commit 7f32e3e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions horde/lib/Block/Metar.php
Expand Up @@ -123,8 +123,7 @@ protected function _content()
if (!empty($this->_params['knots'])) {
$html .= sprintf(_("%s at %s %s"),
$weather['windDirection'],
round($metar->convertSpeed($weather['wind'],
$units['wind'], 'kt')),
round(Horde_Service_Weather::convertSpeed($weather['wind'], $units['wind'], 'kt')),
'kt');
} else {
$html .= sprintf(_("%s at %s %s"),
Expand All @@ -141,7 +140,7 @@ protected function _content()
$weather['windDegrees'],
empty($this->_params['knots']) ?
round($weather['wind']) :
round($metar->convertSpeed($weather['wind'], $units['wind'], 'kt')),
round(Horde_Service_Weather::convertSpeed($weather['wind'], $units['wind'], 'kt')),
empty($this->_params['knots']) ?
$units['wind'] :
'kt');
Expand All @@ -151,7 +150,7 @@ protected function _content()
if ($weather['windGust']) {
if (!empty($this->_params['knots'])) {
$html .= sprintf(_(", gusting %s %s"),
round($metar->convertSpeed($weather['windGust'],
round(Horde_Service_Weather::convertSpeed($weather['windGust'],
$units['wind'], 'kt')),
'kt');
} else {
Expand Down Expand Up @@ -310,8 +309,10 @@ protected function _content()
if (!empty($this->_params['knots'])) {
$forecast .= sprintf(_("%s at %s %s"),
strtolower($entry['windDirection']),
round($metar->convertSpeed($entry['wind'],
$units['wind'], 'kt')),
round(Horde_Service_Weather::convertSpeed(
$entry['wind'],
$units['wind'],
'kt')),
'kt');
} else {
$forecast .= sprintf(_("%s at %s %s"),
Expand All @@ -328,7 +329,7 @@ protected function _content()
$entry['windDegrees'],
empty($this->_params['knots']) ?
round($entry['wind']) :
round($metar->convertSpeed($entry['wind'], $units['wind'], 'kt')),
round(Horde_Service_Weather::convertSpeed($entry['wind'], $units['wind'], 'kt')),
empty($this->_params['knots']) ?
$units['wind'] :
'kt');
Expand Down

0 comments on commit 7f32e3e

Please sign in to comment.