summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2005-12-18 17:28:34 +0000
committerLester Caine <lester@lsces.co.uk>2005-12-18 17:28:34 +0000
commit302b267e93928d3777681a81e2b47d463cfed49a (patch)
treed747a5c27316b6b5a00f4e724a15a376bbdddc99 /admin
parent6af09347a965915b7649411b0ee65e4aa9de0d61 (diff)
downloadcalendar-302b267e93928d3777681a81e2b47d463cfed49a.tar.gz
calendar-302b267e93928d3777681a81e2b47d463cfed49a.tar.bz2
calendar-302b267e93928d3777681a81e2b47d463cfed49a.zip
prepend calendar preferences with calendar_
Ideally this would be handled via the packages column in tiki_preferences in future versions
Diffstat (limited to 'admin')
-rw-r--r--admin/admin_calendar_inc.php13
-rw-r--r--admin/schema_inc.php10
2 files changed, 11 insertions, 12 deletions
diff --git a/admin/admin_calendar_inc.php b/admin/admin_calendar_inc.php
index 9498d87..9a94335 100644
--- a/admin/admin_calendar_inc.php
+++ b/admin/admin_calendar_inc.php
@@ -15,19 +15,18 @@ $dayEnd = range( 24, 13 );
$gBitSmarty->assign( 'dayEnd', $dayEnd );
$calendarValues = array(
- 'week_offset',
- 'hour_fraction',
- 'day_start',
- 'day_end',
- 'user_prefs',
+ 'calendar_week_offset',
+ 'calendar_hour_fraction',
+ 'calendar_day_start',
+ 'calendar_day_end',
+ 'calendar_user_prefs',
);
// this function only exists if it's been included by the index.php page. if
// it's been included from anywhere else, we don't execute this section
if( function_exists( 'simple_set_value' ) && $gBitUser->isAdmin() && !empty( $_REQUEST['calendar_submit'] ) ) {
-vd($_REQUEST);
foreach( $calendarValues as $item ) {
- if ( $item != 'user_prefs' )
+ if ( $item != 'calendar_user_prefs' )
simple_set_value( $item, CALENDAR_PKG_NAME );
else
simple_set_toggle( $item, CALENDAR_PKG_NAME );
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 06572b5..c1c2634 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -10,11 +10,11 @@ $gBitInstaller->registerPackageInfo( CALENDAR_PKG_NAME, array(
// ### Default Preferences
$gBitInstaller->registerPreferences( KERNEL_PKG_NAME, array(
- array(CALENDAR_PKG_NAME,'week_offset','7'),
- array(CALENDAR_PKG_NAME,'hour_fraction','1'),
- array(CALENDAR_PKG_NAME,'user_prefs','y'),
- array(CALENDAR_PKG_NAME,'day_start','0'),
- array(CALENDAR_PKG_NAME,'day_end','24'),
+ array(CALENDAR_PKG_NAME,'calendar_week_offset','7'),
+ array(CALENDAR_PKG_NAME,'calendar_hour_fraction','1'),
+ array(CALENDAR_PKG_NAME,'calendar_user_prefs','y'),
+ array(CALENDAR_PKG_NAME,'calendar_day_start','0'),
+ array(CALENDAR_PKG_NAME,'calendar_day_end','24'),
) );
// ### Default User Permissions