Fix support for wiki hooks.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 20 Mar 2010 13:59:37 +0000 (14:59 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 20 Mar 2010 13:59:37 +0000 (14:59 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platal.php

index f0569d6..a1aade6 100644 (file)
@@ -111,7 +111,7 @@ abstract class Platal
 
         $hook = $this->__hooks[$p];
 
-        if (!is_callable($hook['hook'])) {
+        if (!is_callable($hook['hook']) && $hook['hook'] != PL_WIKI_HOOK) {
             return null;
         }