summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Calendar.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Calendar.php b/Calendar.php
index 1cfe1f6..7bcbd76 100644
--- a/Calendar.php
+++ b/Calendar.php
@@ -108,7 +108,7 @@ class Calendar extends LibertyContent {
/**
* prepare ListHash to ensure errorfree usage
**/
- function prepGetList( &$pListHash ) {
+ public static function prepGetList( &$pListHash ) {
$pListHash['include_data'] = TRUE;
if( !empty( $pListHash['focus_date'] ) ) {
$calDates = $this->doRangeCalculations( $pListHash );
@@ -177,7 +177,7 @@ class Calendar extends LibertyContent {
**/
function buildCalendarNavigation( $pDateHash ) {
global $gBitUser, $gBitSystem;
- $today = $this->mDate->getdate( gmmktime(), false, true );
+ $today = $this->mDate->getdate( time(), false, true );
$focus = $this->mDate->getdate( $pDateHash['focus_date'], false, true );
$ret = array(