Skip to content

Commit

Permalink
Bug: 13628 Honor date_format_mini pref in Moon block.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 12, 2014
1 parent 610b18e commit 4829abd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions horde/lib/Block/Moon.php
Expand Up @@ -63,7 +63,7 @@ protected function _content()
'<tr><td colspan="4" class="control"><strong>' . $location . '</strong></td></tr>' .
'<tr height="100%"><td width="25%" align="center">' .
Horde_Themes_Image::tag('block/moon/newmoon.png', array('alt' => _("New Moon"))) .
'<br />' . strftime('%d %b', $dates[0]) .
'<br />' . strftime($GLOBALS['prefs']->getValue('date_format_mini'), $dates[0]) .
'</td>';

$html .= '<td width="25%" align="center">';
Expand All @@ -73,11 +73,11 @@ protected function _content()
} else {
$html .= Horde_Themes_Image::tag('block/moon/firstquarter.png', array('alt' => _("First Quarter")));
}
$html .= '<br />' . strftime('%d %b', $dates[1]) . '</td>';
$html .= '<br />' . strftime($GLOBALS['prefs']->getValue('date_format_mini'), $dates[1]) . '</td>';

$html .= '<td width="25%" align="center">' .
Horde_Themes_Image::tag('block/moon/fullmoon.png', array('alt' => _("Full Moon"))) .
'<br />' . strftime('%d %b', $dates[2]) . '</td>';
'<br />' . strftime($GLOBALS['prefs']->getValue('date_format_mini'), $dates[2]) . '</td>';

$html .= '<td width="25%" align="center">';
if (isset($this->_params['hemisphere']) &&
Expand All @@ -86,7 +86,7 @@ protected function _content()
} else {
$html .= Horde_Themes_Image::tag('block/moon/lastquarter.png', array('alt' => _("Last Quarter")));
}
$html .= '<br />' . strftime('%d %b', $dates[3]) . '</td></tr></table>';
$html .= '<br />' . strftime($GLOBALS['prefs']->getValue('date_format_mini'), $dates[3]) . '</td></tr></table>';

return $html;
}
Expand Down

0 comments on commit 4829abd

Please sign in to comment.