diff --git a/Conjuro/Conjuro.php b/Conjuro/Conjuro.php index e9e00e7..0749293 100644 --- a/Conjuro/Conjuro.php +++ b/Conjuro/Conjuro.php @@ -189,6 +189,7 @@ if (!isset($name) || strpos($name,".")!==false || strpos($name,"/")!==false){ throw new Exception("Module name error: '$name'."); } + $name=strtolower($name); if (!isset($this->modules[$name])){ $conf=$this->conf; $m=include "content/modules/$name.php"; @@ -387,7 +388,7 @@ } } - function C(){ + function c(){ global $c; if (!isset($c)){ $cfg=include "Config.php"; @@ -401,8 +402,8 @@ return $c; } - function M($name){ - return C()->module($name); + function m($name){ + return c()->module($name); } ?> \ No newline at end of file diff --git a/content/controls/builder.html b/content/controls/builder.html index 6fd6071..b8b37cf 100644 --- a/content/controls/builder.html +++ b/content/controls/builder.html @@ -1,9 +1,10 @@ -