diff --git a/src/Css.php b/src/Css.php index 0edecd5..d5d272f 100644 --- a/src/Css.php +++ b/src/Css.php @@ -16,6 +16,12 @@ class Css */ static function duo($config, $theme, $tint, &$public_master_file, &$public_theme_file) { + static $conf = null; + if ($config === null) + $config = $conf; + else + $conf = $config; + $max_mtime = 0; $masterfiles = []; $themefiles = []; diff --git a/src/Request.php b/src/Request.php index d45781d..e62d047 100644 --- a/src/Request.php +++ b/src/Request.php @@ -199,7 +199,7 @@ class Request { $class = substr($controller, 0, $pos); $method = substr($controller, $pos + 2); - require __DIR__ . '/../controllers/' . $class . '.php'; + // require __DIR__ . '/../controllers/' . $class . '.php'; $reflection = new \ReflectionMethod($class, $method); return $reflection->invokeArgs(null, $this->_get_args_from_params($reflection->getParameters())); } @@ -207,7 +207,7 @@ class Request { $class = substr($controller, 0, $pos); $method = substr($controller, $pos + 2); - require __DIR__ . '/../controllers/' . $class . '.php'; + // require __DIR__ . '/../controllers/' . $class . '.php'; $reflection = new \ReflectionMethod($class, $method); $obj = new $class($this->container); return $reflection->invokeArgs($obj, $this->_get_args_from_params($reflection->getParameters()));