The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. chrisstump
    Posted 4 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;


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CGM Event Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic