aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/style/style.php2
-rw-r--r--phpBB/includes/template/twig/twig.php5
2 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/style/style.php b/phpBB/includes/style/style.php
index 493c4512a6..29cdcf0f7f 100644
--- a/phpBB/includes/style/style.php
+++ b/phpBB/includes/style/style.php
@@ -160,8 +160,6 @@ class phpbb_style
$this->template->set_style_names($names, $appended_paths);
}
- //$this->template->cachepath = $this->phpbb_root_path . 'cache/tpl_' . str_replace('_', '-', $name) . '_';
-
return true;
}
diff --git a/phpBB/includes/template/twig/twig.php b/phpBB/includes/template/twig/twig.php
index 347db0b94c..98bd1ab89c 100644
--- a/phpBB/includes/template/twig/twig.php
+++ b/phpBB/includes/template/twig/twig.php
@@ -30,9 +30,12 @@ class phpbb_template_twig implements phpbb_template
/**
* Path of the cache directory for the template
+ *
+ * Cannot be changed during runtime.
+ *
* @var string
*/
- public $cachepath = '';
+ private $cachepath = '';
/**
* phpBB root path