diff --git a/system/src/Grav/Common/Twig/TwigExtension.php b/system/src/Grav/Common/Twig/TwigExtension.php index 6b3379fe12..ea0ffa7cd8 100644 --- a/system/src/Grav/Common/Twig/TwigExtension.php +++ b/system/src/Grav/Common/Twig/TwigExtension.php @@ -1121,11 +1121,12 @@ public function niceNumberFunc($n) * Get a theme variable * * @param $var + * @param bool $default * @return string */ - public function themeVarFunc($var) + public function themeVarFunc($var, $default = null) { - return $this->config->get('theme.' . $var, false) ?: ''; + return $this->config->get('theme.' . $var, $default); } /**