Skip to content

Commit

Permalink
Remove base_dir and theme_dir Twig variables
Browse files Browse the repository at this point in the history
These variables aren't really needed in Twig and can still be accessed using $config
  • Loading branch information
PhrozenByte committed Jul 14, 2019
1 parent 33117be commit ad729a9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Pico.php
Original file line number Diff line number Diff line change
Expand Up @@ -2029,12 +2029,10 @@ protected function getTwigVariables()
{
return array(
'config' => $this->getConfig(),
'base_dir' => rtrim($this->getRootDir(), '/'),
'base_url' => rtrim($this->getBaseUrl(), '/'),
'plugins_url' => rtrim($this->getConfig('plugins_url'), '/'),
'themes_url' => rtrim($this->getConfig('themes_url'), '/'),
'assets_url' => rtrim($this->getConfig('assets_url'), '/'),
'theme_dir' => $this->getThemesDir() . $this->getConfig('theme'),
'theme_url' => $this->getConfig('themes_url') . $this->getConfig('theme'),
'site_title' => $this->getConfig('site_title'),
'meta' => $this->meta,
Expand Down

0 comments on commit ad729a9

Please sign in to comment.