Follow-up to #11386: Caching framework file backend does not return absolute path...
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Jun 2010 11:37:12 +0000 (11:37 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Jun 2010 11:37:12 +0000 (11:37 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7816 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php
tests/t3lib/cache/backend/t3lib_cache_backend_filebackendtestcase.php

index 4688512..6c836eb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 
 2010-06-06  Christian Kuhn  <lolli@schwarzbu.ch>
 
+       * Follow-up to #11386: Caching framework file backend does not return absolute path in getCacheDirectory()
        * Fixed bug #14455: [Performance] Wrong variable in t3lib_cache_memcachedbackend leads to redundant data (Thanks to Dan Osipov)
 
 2010-06-05  Stanislas Rolland  <typo3@sjbr.ca>
index 5372529..2f4af7c 100644 (file)
@@ -189,7 +189,7 @@ class t3lib_cache_backend_FileBackend extends t3lib_cache_backend_AbstractBacken
         * @author Robert Lemke <robert@typo3.org>
         */
        public function getCacheDirectory() {
-               return $this->cacheDirectory;
+               return $this->root . $this->cacheDirectory;
        }
 
        /**
index f817256..ad976b6 100644 (file)
@@ -115,7 +115,7 @@ class t3lib_cache_backend_FileBackendTestCase extends tx_phpunit_testcase {
                $fullPathToDirectory = t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') . '/' . $directory;
 
                $this->backend->setCacheDirectory($directory);
-               $this->assertEquals($fullPathToDirectory, $this->backend->getCacheDirectory(), 'getDirectory() did not return the expected value.');
+               $this->assertEquals($fullPathToDirectory, $this->backend->getCacheDirectory(), 'getCacheDirectory() did not return the expected value.');
        }
 
        /**