Skip to content

Commit

Permalink
remove translate being called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannon authored Apr 6, 2024
1 parent f14db89 commit dbd1836
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions edit_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -1196,10 +1196,10 @@ function time_selection($prefix, $time = '', $trigger = false)
$rpt_byday_label++
) {
$rpt_byday_mod = $rpt_byday_label % 7;
$class = (is_weekend($rpt_byday_mod) ? ' class="weekend" ' : '');
echo '
<th width="50px"' . $class . '><label>'
. translate($weekday_names[$rpt_byday_mod]) . '</label></th>';
$class = ( is_weekend ( $rpt_byday_mod ) ? 'class="weekend" ' : '' );
echo "
<th $class" . 'width="50px"><label>' .
$weekday_names[$rpt_byday_mod] . '</label></th>';
}
echo '
</tr>
Expand Down

0 comments on commit dbd1836

Please sign in to comment.