Add banana in __autoload to be sure session data are correctly handled.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 28 Oct 2007 23:13:07 +0000 (00:13 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 28 Oct 2007 23:13:37 +0000 (00:13 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/platal.inc.php

index 83833e5..b396d78 100644 (file)
@@ -49,6 +49,10 @@ function __autoload($cls)
         if (substr($cls, -3, 3) == 'req') {
             @include 'validations.inc.php';
             return;
+        } else if (substr($cls, 0, 6) == 'banana') {
+            require_once 'banana/banana.inc.php';
+            Banana::load(substr($cls, 6));
+            return;
         }
         @include "$cls.inc.php";
     }