diff --git a/lib/JpGraph/JpGraph.php b/lib/JpGraph/JpGraph.php index 5460747..e56b518 100644 --- a/lib/JpGraph/JpGraph.php +++ b/lib/JpGraph/JpGraph.php @@ -18,6 +18,7 @@ static function module($moduleName){ $path = __DIR__.'/src/jpgraph_'.$moduleName.'.php' ; if(file_exists($path)){ include_once $path ; + self::$modules[] = $moduleName; }else{ throw new ModuleNotFoundException('The JpGraphs\'s module "'.$moduleName.'" does not exist'); } @@ -25,4 +26,4 @@ static function module($moduleName){ } } -?> \ No newline at end of file +?>