From: Florent Bruneau Date: Mon, 22 Dec 2008 22:07:31 +0000 (+0100) Subject: A module can redefine a previously defined handler. X-Git-Tag: core/1.0.1~46 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0709dd7d7f98df88be921553740e43114fe684f4;p=platal.git A module can redefine a previously defined handler. Signed-off-by: Florent Bruneau --- diff --git a/classes/platal.php b/classes/platal.php index 27cdd09..16b1955 100644 --- a/classes/platal.php +++ b/classes/platal.php @@ -62,7 +62,7 @@ abstract class Platal foreach ($modules as $module) { $module = strtolower($module); $this->__mods[$module] = $m = PLModule::factory($module); - $this->__hooks += $m->handlers(); + $this->__hooks = $m->handlers() + $this->__hooks; } if ($globals->mode == '') {