summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-24 22:39:37 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-24 22:39:37 +0000
commitd7a67c1be8e4c00bc0d520e299c84908ab8ab05b (patch)
tree1d17acff5b8b9a014fd2a351beb61002171d0f48 /modules
parentc60e390fab690dd692c61012b45d55a0fa152114 (diff)
downloadcalendar-d7a67c1be8e4c00bc0d520e299c84908ab8ab05b.tar.gz
calendar-d7a67c1be8e4c00bc0d520e299c84908ab8ab05b.tar.bz2
calendar-d7a67c1be8e4c00bc0d520e299c84908ab8ab05b.zip
add calendar admin page and admin menu
calendar time shift hopefully working now week_offset defined as constant now user preferences override defaults set by admin
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_calendar.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/mod_calendar.php b/modules/mod_calendar.php
index 01d7e06..cc7840c 100644
--- a/modules/mod_calendar.php
+++ b/modules/mod_calendar.php
@@ -30,12 +30,9 @@ $dayNames = array(
);
// depending on what day we want to view first, we need to adjust the dayNames array
-$week_offset = $gBitSystem->getPreference( 'week_offset', 1 );
-if( !empty( $week_offset ) ) {
- for( $i = 0; $i < $week_offset; $i++ ) {
- $pop = array_pop( $dayNames );
- array_unshift( $dayNames, $pop );
- }
+for( $i = 0; $i < WEEK_OFFSET; $i++ ) {
+ $pop = array_pop( $dayNames );
+ array_unshift( $dayNames, $pop );
}
$gBitSmarty->assign( 'dayNames', $dayNames );