$component->admin_log = $this->container['admin_log'];
$component->auth_app = $this->container['apps']['auth'];
$component->router = $this->container['router'];
+
+ $component->date_format = $this->container['settings']->get('date_format');
+ $component->datetime_format = $this->container['settings']->get('datetime_format');
+ $component->tz = $this->container['settings']->get('time_zone');
+
$components[] = $component;
}
}
/** @var IPF_Router */
public $router;
+ public $date_format;
+ public $datetime_format;
+ public $tz;
+
public function slug()
{
$slug = get_class($this);
{
$extra = array(
'filebrowser_url' => $this->router->reverse(array('IPF_Admin_FileBrowser_Controller', 'index')),
+ 'date_format' => $this->date_format,
+ 'datetime_format' => $this->datetime_format,
);
$errors = false;
$extra = array(
'filebrowser_url' => $this->router->reverse(array('IPF_Admin_FileBrowser_Controller', 'index')),
+ 'date_format' => $this->date_format,
+ 'datetime_format' => $this->datetime_format,
);
$errors = false;
/** @var Container */
private $container = null;
private $apps = array();
- public $request = null;
static private $instance = NULL;
if (php_sapi_name() === 'cli') {
$this->container['cli']->run();
} else {
- $this->request = new IPF_HTTP_Request;
+ $request = new IPF_HTTP_Request;
- $response = $this->chainMiddlewares()->call($this->request);
- $response->render($this->request->method !== 'HEAD');
-
- $this->request = null;
+ $response = $this->chainMiddlewares()->call($request);
+ $response->render($request->method !== 'HEAD');
}
}
}