[dev] Kronolith's default_share

John Morrissey jwm at horde.net
Thu Feb 20 11:35:02 PST 2003


Currently, default_share defaults to "0" instead of the user's default
calendar. This could be a little confusing, as Kronolith's prefs widget will
display "My Calendar" if default_share isn't set. Other things, like
importing vEvents, break if a default share isn't explicitly set. Does it
make sense to default default_share to Auth::getAuth, if available (see
attached)?

john
-- 
John Morrissey          _o            /\         ----  __o
jwm at horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__
-------------- next part --------------
Index: kronolith/config/prefs.php.dist
===================================================================
RCS file: /repository/kronolith/config/prefs.php.dist,v
retrieving revision 1.37
diff -u -u -r1.37 prefs.php.dist
--- kronolith/config/prefs.php.dist	22 Jan 2003 03:07:50 -0000	1.37
+++ kronolith/config/prefs.php.dist	20 Feb 2003 16:30:38 -0000
@@ -209,7 +209,7 @@
 // default calendar
 // Set locked to true if you don't want users to have multiple calendars.
 $_prefs['default_share'] = array(
-    'value' => 0,
+    'value' => Auth::getAuth() ? Auth::getAuth() : 0,
     'locked' => false,
     'shared' => true,
     'type' => 'implicit');


More information about the dev mailing list