summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2007-02-27 17:35:47 +0000
committerLester Caine <lester@lsces.co.uk>2007-02-27 17:35:47 +0000
commitc4654021e5169d985bfa745155fd1b479de06236 (patch)
tree9e0d551b5ba50cd18e8eed774ae149d165178896 /modules
parentc55c46f9a8635228cf0ed9cb2aa8e7c1ea19846b (diff)
downloadcalendar-c4654021e5169d985bfa745155fd1b479de06236.tar.gz
calendar-c4654021e5169d985bfa745155fd1b479de06236.tar.bz2
calendar-c4654021e5169d985bfa745155fd1b479de06236.zip
Stop module updating focus in session. Only the calendar filters it.
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_calendar.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mod_calendar.php b/modules/mod_calendar.php
index 7b6b1e8..d5fc2d3 100644
--- a/modules/mod_calendar.php
+++ b/modules/mod_calendar.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_calendar/modules/mod_calendar.php,v 1.9 2006/01/10 21:19:49 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_calendar/modules/mod_calendar.php,v 1.10 2007/02/27 17:35:47 lsces Exp $
* @package calendar
* @subpackage modules
*/
@@ -14,11 +14,11 @@ $cal = new Calendar();
// set up the todate
if( !empty( $_REQUEST['todate'] ) ) {
// clean up todate. who knows where this has come from
- if ( is_numeric( $_REQUEST['todate'] ) ) {
+/* if ( is_numeric( $_REQUEST['todate'] ) ) {
$_SESSION['calendar']['focus_date'] = $_REQUEST['todate'] = $cal->mDate->gmmktime( 0, 0, 0, $cal->mDate->date( 'm', $_REQUEST['todate'] ), $cal->mDate->date( 'd', $_REQUEST['todate'] ), $cal->mDate->date( 'Y', $_REQUEST['todate'] ) );
} else {
$_SESSION['calendar']['focus_date'] = $_REQUEST['todate'] = $cal->mDate->gmmktime( 0, 0, 0, $cal->mDate->date2( 'm', $_REQUEST['todate'] ), $cal->mDate->date2( 'd', $_REQUEST['todate'] ), $cal->mDate->date2( 'Y', $_REQUEST['todate'] ) );
- }
+ } */
} elseif( !empty( $_SESSION['calendar']['focus_date'] ) ) {
$_REQUEST["todate"] = $_SESSION['calendar']['focus_date'];
} else {