Remove base_dir and theme_dir Twig variables
These variables aren't really needed in Twig and can still be accessed using $config
This commit is contained in:
parent
33117be981
commit
ad729a99c4
@ -2029,12 +2029,10 @@ class Pico
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'config' => $this->getConfig(),
|
'config' => $this->getConfig(),
|
||||||
'base_dir' => rtrim($this->getRootDir(), '/'),
|
|
||||||
'base_url' => rtrim($this->getBaseUrl(), '/'),
|
'base_url' => rtrim($this->getBaseUrl(), '/'),
|
||||||
'plugins_url' => rtrim($this->getConfig('plugins_url'), '/'),
|
'plugins_url' => rtrim($this->getConfig('plugins_url'), '/'),
|
||||||
'themes_url' => rtrim($this->getConfig('themes_url'), '/'),
|
'themes_url' => rtrim($this->getConfig('themes_url'), '/'),
|
||||||
'assets_url' => rtrim($this->getConfig('assets_url'), '/'),
|
'assets_url' => rtrim($this->getConfig('assets_url'), '/'),
|
||||||
'theme_dir' => $this->getThemesDir() . $this->getConfig('theme'),
|
|
||||||
'theme_url' => $this->getConfig('themes_url') . $this->getConfig('theme'),
|
'theme_url' => $this->getConfig('themes_url') . $this->getConfig('theme'),
|
||||||
'site_title' => $this->getConfig('site_title'),
|
'site_title' => $this->getConfig('site_title'),
|
||||||
'meta' => $this->meta,
|
'meta' => $this->meta,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user