WordPress.org

Support

Support » Plugins and Hacks » [Plugin: CGM Event Calendar] "Next Week" Link Jumping Ahead to Next Year

[Plugin: CGM Event Calendar] "Next Week" Link Jumping Ahead to Next Year

  • The “Next Week” link in the weekly view was jumping ahead to the following year. For example, in the first week of January, 2012, the “Next Week” link would jump to 2013/1, instead of 2012/2.

    I found a quick work around by modifying line 2886 in cgm_calendar.php:

    //PLUGIN UPDATE: Changed $total_weeks to hard coded value of 52; $total_weeks was always evaluating to 01
    			//if ($week >= $total_weeks) {
    			if ($week >= 52) {
    				$next_year = $year+1;
    				$next_week = 1;
    			}

    http://wordpress.org/extend/plugins/cgm-event-calendar/

  • The topic ‘[Plugin: CGM Event Calendar] "Next Week" Link Jumping Ahead to Next Year’ is closed to new replies.