therselman 7 years ago
parent
commit
950edda492
  1. 6
      src/Css.php
  2. 4
      src/Request.php

6
src/Css.php

@ -16,6 +16,12 @@ class Css @@ -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 = [];

4
src/Request.php

@ -199,7 +199,7 @@ class Request @@ -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 @@ -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()));

Loading…
Cancel
Save