Code Duplication    Length = 3-4 lines in 2 locations

main/inc/lib/agenda.lib.php 1 location

@@ 3762-3764 (lines=3) @@
3759
                        $curday,
3760
                        array('class' => 'agenda_day')
3761
                    );
3762
                    if (($curday == $today['mday']) && ($year == $today['year']) && ($month == $today['mon'])) {
3763
                        $class = "class=\"days_today\" style=\"width:10%;\"";
3764
                    }
3765
3766
                    $html .= "<td ".$class.">".$dayheader;
3767

main/inc/lib/blog.lib.php 1 location

@@ 2705-2708 (lines=4) @@
2702
                    $bgcolor = $ii < 5 ? $class = "class=\"days_week\"" : $class = "class=\"days_weekend\"";
2703
                    $dayheader = "$curday";
2704
2705
                    if (($curday == $today['mday']) && ($year == $today['year']) && ($month == $today['mon'])) {
2706
                        $dayheader = "$curday";
2707
                        $class = "class=\"days_today\"";
2708
                    }
2709
2710
                    $html .= '<td '.$class.'>';
2711