From d6f1d67481e9223d1c520ea9f244d4061b970a97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Skej=C3=B8?= Date: Fri, 31 Jul 2009 11:38:09 +0200 Subject: [PATCH] Things missing in last commit --- AOOSCore.php | 6 +++--- AOOSException.php | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/AOOSCore.php b/AOOSCore.php index 2acb19e..3f95a7c 100644 --- a/AOOSCore.php +++ b/AOOSCore.php @@ -194,9 +194,9 @@ class AOOSCore $instance->setName($module); // Classes and files used in module - $_SESSION["files"][$path] = $module; + self::register($module, $path); foreach ($instance->files() as $class => $path) { - $_SESSION["files"][$dir.$path] = $class; // Use paths as keys so that we can handle similarly named classes from different modules + self::register($class, $dir.$path); } return $instance; @@ -220,7 +220,7 @@ class AOOSCore * @param $path The path relative to the root directory */ static public function register($class, $path) { - $_SESSION["files"][$path] = $class; + $_SESSION["files"][$path] = $class; // Use paths as keys so that we can handle similarly named classes from different modules return true; } diff --git a/AOOSException.php b/AOOSException.php index 0b3a5d9..295c399 100644 --- a/AOOSException.php +++ b/AOOSException.php @@ -1,5 +1,7 @@ "AOOSException.php"); + /** * AOOSException * @author Sebastian Skejø -- 2.11.4.GIT