A module can redefine a previously defined handler.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 22 Dec 2008 22:07:31 +0000 (23:07 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 22 Dec 2008 22:07:31 +0000 (23:07 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platal.php

index 27cdd09..16b1955 100644 (file)
@@ -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 == '') {