diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-08 21:51:13 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-08 21:51:13 +0000 |
| commit | 4218a63e18a2e110008a2a847a2adeb0b3578c19 (patch) | |
| tree | e7d12d0297327aad2b3e903707fece127a48f1ce /index.php | |
| parent | e9502a12723ed97e1e4150c4bf7d036a6ca25460 (diff) | |
| download | calendar-4218a63e18a2e110008a2a847a2adeb0b3578c19.tar.gz calendar-4218a63e18a2e110008a2a847a2adeb0b3578c19.tar.bz2 calendar-4218a63e18a2e110008a2a847a2adeb0b3578c19.zip | |
php: introduce new method: getPref( $package, $pref, $defaut ) (order is open for discussion
tpl: $gBitPref.package.pref
applied package name to all saves - should make database more organised and should allow more reliable uninstalls in the future
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.38 2006/02/02 14:39:46 hash9 Exp $ +// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.39 2006/02/08 21:51:13 squareing Exp $ // Copyright( c ) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. @@ -17,7 +17,7 @@ $gBitSystem->verifyPermission( 'bit_p_view_calendar' ); // setup list of bit items displayed if( !empty( $_REQUEST["content_type_guid"] ) ) { if( $gBitUser->isRegistered() ) { - $gBitUser->storePreference( 'calendar_default_guids', serialize( $_REQUEST['content_type_guid'] ) ); + $gBitUser->storePreference( 'calendar_default_guids', serialize( $_REQUEST['content_type_guid'] ), CALENDAR_PKG_NAME ); } $_SESSION['calendar']['content_type_guid'] = $_REQUEST["content_type_guid"]; } elseif( !isset( $_SESSION['calendar']['content_type_guid'] ) && $gBitUser->getPreference( 'calendar_default_guids' ) && $gBitUser->isRegistered() ) { |
