X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplmodule.php;h=06e5da837c851f88e133db91bc731ecdd869c782;hb=07e48b6bbcc3da03e8867d9ec4c0198109691596;hp=a515a41d3e3292cc3e666de2f6767cdc1b5ceda9;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/classes/plmodule.php b/classes/plmodule.php index a515a41..06e5da8 100644 --- a/classes/plmodule.php +++ b/classes/plmodule.php @@ -1,6 +1,6 @@ array($this, 'handler_'.$fun), 'auth' => $auth, @@ -35,8 +50,8 @@ class PLModule public static function factory($modname) { - $mod_path = dirname(__FILE__).'/../modules/'.strtolower($modname).'.php'; - $class = ucfirst($modname).'Module'; + $mod_path = dirname(__FILE__) . '/../modules/' . $modname . '.php'; + $class = ucfirst($modname) . 'Module'; require_once $mod_path; return new $class();