Allow strftime-syntax for config.stat_apache_logfile
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 4 Dec 2006 15:46:56 +0000 (15:46 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 4 Dec 2006 15:46:56 +0000 (15:46 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1844 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index c883f88..3b7c8d5 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+
+2006-11-21  Martin Kutschker  <martin.t.kutschker@blackbox.net>
+
+       * Allow strftime-syntax for config.stat_apache_logfile (Thanks to Francois Suter and Michael Stucki)
+
 2006-12-03  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Use <label> tags in tceforms where appropriate to enhance usability (Thanks to Ingo Renner for writing the patch!)
index 91b1b56..7b66276 100755 (executable)
                                        $this->config['mainScript'] = trim($this->config['config']['mainScript']) ? trim($this->config['config']['mainScript']) : 'index.php';
 
                                                // STAT:
-                                       $theLogFile = $this->TYPO3_CONF_VARS['FE']['logfile_dir'].$this->config['config']['stat_apache_logfile'];
+                                       $theLogFile = $this->TYPO3_CONF_VARS['FE']['logfile_dir'].strftime($this->config['config']['stat_apache_logfile']);
                                                // Add PATH_site left to $theLogFile if the path is not absolute yet
                                        if (!t3lib_div::isAbsPath($theLogFile)) $theLogFile = PATH_site.$theLogFile;