PDA

View Full Version : Total views chart



michael_s
01-12-2015, 08:07 AM
After a year change the chart is broken for one month. To fix it, find the following line in your catalog/includes/counter.php:

$miesiac = date('Y').date('m', strtotime('-1 month'));

and replace it with:

$mies = date('Y');
$iac = date('m', strtotime('-1 month'));
if ($iac == 12) $mies--;
$miesiac = $mies.$iac;

Easy going.

More... (http://addons.oscommerce.com/info/9140)