[horde] Cannot redeclare class Horde_Hooks
Jan Schneider
jan at horde.org
Mon Jun 15 19:39:58 UTC 2015
Zitat von meberhardt at unl.edu.ar:
> Hi all,
>
> When I try to enable the authusername horde hook, I get the
> following horde error:
>
> "Cannot redeclare class Horde_Hooks"
>
> I'm using a modified version of authusername:
>
> public function authusername ($userId, $toHorde)
> {
> $domain = $GLOBALS['auth_params']['imp_server_key'];
> if ($toHorde) {
> return
> ltrim(rtrim(Horde_String::lower($userId))) . '@' . $domain;
> } else {
> return (substr($userId, -strlen($domain)) == $domain)
> ?
> substr(ltrim(rtrim(Horde_String::lower($userId))), 0,
> -strlen($domain))
> : ltrim(rtrim(Horde_String::lower($userId)));
> }
> }
>
> What I'm doing wrong?
You probably have several hooks*.php files. Or you copied hook code
from application to another.
--
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject
More information about the horde
mailing list