[dev] Incorrect hooks activity

Chuck Hagenbuch chuck@horde.org
Thu Nov 14 23:21:15 2002


Quoting Michael M Slusarz <slusarz@bigworm.colorado.edu>:

> Anyway, when using IMP as the authentication piece to Horde, preferences
> hooks do not appear to be working correctly.  Namely, it appears the
> hooks are being  run at the same time the default preferences are loaded 
> (i.e. before IMP_Session::createSession() is run).  Since the hooks are 
> only run once (the static variable gets set the first time it is run), 
> they do not get run after the user has been logged in.  Thus, you cannot 
> use Auth::* in any of the hooks functions since none of that information 
> has been initialized yet.  For example, the _prefs_hook_fullname function 
> requires the Auth::getAuth() function.  However, this function returns 
> false so it is worthless.

Try what I just committed. If that doesn't change anything for you, then
something is wrong on your end, because this works correctly for me.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"People ask me all the time what it will be like living without otters."
 - Google, thanks to Harpers


More information about the dev mailing list