[Tickets #9728] Re: hook prefs_init
bugs at horde.org
bugs at horde.org
Mon Apr 4 19:23:37 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/9728
------------------------------------------------------------------------------
Ticket | 9728
Updated By | Michael Slusarz <slusarz at horde.org>
Summary | hook prefs_init
Queue | Turba
Version | Git master
Type | Bug
State | Feedback
Priority | 1. Low
Milestone |
Patch |
Owners | Michael Rubinsky
------------------------------------------------------------------------------
Michael Slusarz <slusarz at horde.org> (2011-04-04 19:23) wrote:
> class Turba_Hooks
> { public function prefs_init($pref, $value, $username, $scope_ob)
> {
> Horde::debug(Turba::listShares());
> Horde::debug($_SESSION);
> }
> }
>
> Turba::listShares() always returns empty array and
> $_SESSION['turba'] is not set.
The session variable for the application won't be available in
prefs_init since the preferences need to be initialized BEFORE the
application is initialized. Chicken-and-egg problem.
prefs_init code needs to be self-contained within the hook at the
present time.
More information about the bugs
mailing list