Skip to content

Commit

Permalink
// Version updated to v2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
eternoendless committed Aug 14, 2018
1 parent 66642d9 commit dc07a33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>dashproducts</name>
<displayName><![CDATA[Dashboard Products]]></displayName>
<version><![CDATA[2.0.3]]></version>
<version><![CDATA[2.0.4]]></version>
<description><![CDATA[Adds a block with a table of your latest orders and a ranking of your products]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[dashboard]]></tab>
Expand Down
6 changes: 3 additions & 3 deletions dashproducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
{
$this->name = 'dashproducts';
$this->tab = 'dashboard';
$this->version = '2.0.3';
$this->version = '2.0.4';
$this->author = 'PrestaShop';

$this->push_filename = _PS_CACHE_DIR_.'push/activity';
Expand Down Expand Up @@ -482,8 +482,8 @@ public function getTotalViewed($date_from, $date_to, $limit = 10)
1,
10
);


if ($result) {
foreach ($result as $row) {
if (preg_match('@/([a-z]{2}/)?([a-z]+/)?([0-9]+)\-.*\.html$@', $row['dimensions']['pagePath'], $matches)) {
Expand Down

0 comments on commit dc07a33

Please sign in to comment.