fixes #1222 define calendar constants in calendar_base.class

So that we can include both calendar_weekly and calendar_monthly in the same script.
This commit is contained in:
plegall 2020-09-11 10:34:06 +02:00
parent e541bd036f
commit 0530a64e91
3 changed files with 8 additions and 16 deletions

View file

@ -10,6 +10,14 @@
* @package functions\calendar
*/
/** level of year view */
define('CYEAR', 0);
/** level of week view in weekly view */
define('CWEEK', 1);
/** level of month view in monthly view */
define('CMONTH', 1);
/** level of day view */
define('CDAY', 2);
/**
* Base class for monthly and weekly calendar styles

View file

@ -12,14 +12,6 @@
include_once(PHPWG_ROOT_PATH.'include/calendar_base.class.php');
/** level of year view */
define('CYEAR', 0);
/** level of month view */
define('CMONTH', 1);
/** level of day view */
define('CDAY', 2);
/**
* Monthly calendar style (composed of years/months and days)
*/

View file

@ -12,14 +12,6 @@
include_once(PHPWG_ROOT_PATH.'include/calendar_base.class.php');
/** level of year view */
define('CYEAR', 0);
/** level of week view */
define('CWEEK', 1);
/** level of day view */
define('CDAY', 2);
/**
* Weekly calendar style (composed of years/week in years and days in week)
*/