Fixed twig cache error #3376

This commit is contained in:
Monika
2026-03-11 15:44:30 +05:30
parent 549d970d31
commit ad261487ff
@@ -3,8 +3,8 @@
/** /**
* @package Gantry5 * @package Gantry5
* @author Tiger12 http://tiger12.com * @author Tiger12 http://tiger12.com
* @originalCreator RocketTheme (Gantry Framework) * @originalCreator RocketTheme (Gantry Framework)
* @currentDeveloper Tiger12, LLC * @currentDeveloper Tiger12, LLC
* @copyright Copyright (C) 2007 - 2022 Tiger12, LLC * @copyright Copyright (C) 2007 - 2022 Tiger12, LLC
* @license Dual License: MIT or GNU/GPLv2 and later * @license Dual License: MIT or GNU/GPLv2 and later
* *
@@ -137,7 +137,7 @@ abstract class AbstractTheme
$cache = new TwigCacheFilesystem($cachePath, FilesystemCache::FORCE_BYTECODE_INVALIDATION); $cache = new TwigCacheFilesystem($cachePath, FilesystemCache::FORCE_BYTECODE_INVALIDATION);
} }
} else { } else {
$cache = null; $cache = false;
} }
$debug = $gantry->debug(); $debug = $gantry->debug();
$production = (bool) $global->get('production', 1); $production = (bool) $global->get('production', 1);