aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-02 12:23:42 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-02 12:23:42 -0500
commitf102f609f5f0e424374aab55b8141c4e4a48b0fc (patch)
tree8363202e0982e90ca5e82c0aaab9c2ce8f5bb88d /phpBB
parent985a233a78af7350387dfb9b8a924d09df767f05 (diff)
downloadforums-f102f609f5f0e424374aab55b8141c4e4a48b0fc.tar
forums-f102f609f5f0e424374aab55b8141c4e4a48b0fc.tar.gz
forums-f102f609f5f0e424374aab55b8141c4e4a48b0fc.tar.bz2
forums-f102f609f5f0e424374aab55b8141c4e4a48b0fc.tar.xz
forums-f102f609f5f0e424374aab55b8141c4e4a48b0fc.zip
[feature/twig] Remove getCacheFilename function I was working on
This can be addressed later if we decide we want to have more nicely named cache files. It does not need to be addressed now PHPBB3-11598
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/template/twig/environment.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/phpBB/includes/template/twig/environment.php b/phpBB/includes/template/twig/environment.php
index 73375444da..190d43f513 100644
--- a/phpBB/includes/template/twig/environment.php
+++ b/phpBB/includes/template/twig/environment.php
@@ -39,36 +39,6 @@ class phpbb_template_twig_environment extends Twig_Environment
}
/**
- * Gets the cache filename for a given template.
- *
- * @param string $name The template name
- * @return string The cache file name
- */
- public function ignoregetCacheFilename($name)
- {
- if (false === $this->cache)
- {
- return false;
- }
- // @todo
- $file_path = $this->getLoader()->getCacheKey($name);
- foreach ($this->getLoader()->getNamespaces() as $namespace)
- {
- foreach ($this->getLoader()->getPaths($namespace) as $path)
- {
- if (strpos($file_path, $path) === 0)
- {
- //return $this->getCache() . '/' . preg_replace('#[^a-zA-Z0-9_/]#', '_', $namespace . '/' . $name) . '.php';
- }
- }
- }
-
- // We probably should never get here under normal circumstances
- return $this->getCache() . '/' . preg_replace('#[^a-zA-Z0-9_/]#', '_', $name) . '.php';
- return $this->getCache() . '/' . preg_replace('#[^a-zA-Z0-9_/]#', '_', $name) . '_' . md5($this->getLoader()->getCacheKey($name)) . '.php';
- }
-
- /**
* Get the list of enabled phpBB extensions
*
* @return array