[BUGFIX] Page Information shows incorrect number of total hits
authorAndrew Moore <snowman61@hotmail.com>
Sat, 10 Nov 2012 17:06:06 +0000 (18:06 +0100)
committerErnesto Baschny <ernst@cron-it.de>
Fri, 30 Nov 2012 08:37:52 +0000 (09:37 +0100)
You need to install the extension "sys_stat" to show the mentioned hit
statistics.
Due to an error in the code a timestamp is displayed instead of the
actual count. Use the correct variable instead.

Change-Id: I6b33e7760e0e2a4ca5b0b4c7f7151246fe6fe02c
Releases: 4.7, 4.6, 4.5
Resolves: #41608
Reviewed-on: http://review.typo3.org/16880
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/sysext/cms/layout/class.tx_cms_layout.php

index 0b2ef93..13a8330 100755 (executable)
@@ -2562,7 +2562,7 @@ class tx_cms_layout extends recordList {
 
                                $lines[] = '';
                                $lines[] = array($LANG->getLL('pI_hitsPeriod') . ':', t3lib_BEfunc::date($rrow2[0]) . ' - ' . t3lib_BEfunc::date($rrow2[1]) . ' (' . t3lib_BEfunc::calcAge($rrow2[1] - $rrow2[0], $this->agePrefixes) . ')');
-                               $lines[] = array($LANG->getLL('pI_hitsTotal') . ':', $rrow2[0]);
+                               $lines[] = array($LANG->getLL('pI_hitsTotal') . ':', $count);
 
 
                                // Last 10 days