WordPress.org

Ready to get started?Download WordPress

Forums

CGM Event Calendar
"Next Week" Link Jumping Ahead to Next Year (1 post)

  1. chrisstump
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic