Skip to content

Commit

Permalink
Make module compatible with PHP 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickaël Andrieu committed Oct 30, 2018
1 parent 475697f commit 49dfa83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gamification.php
Expand Up @@ -38,7 +38,7 @@ class gamification extends Module
/* We recommend to not set it to true in production environment. */
const TEST_MODE = false;

private $url_data = 'https://gamification.prestashop.com/json/';
private $url_data = '';

private $cache_data = __DIR__.'/data/';

Expand All @@ -56,6 +56,8 @@ public function __construct()

$this->displayName = $this->l('Merchant Expertise');
$this->description = $this->l('Become an e-commerce expert within the blink of an eye!');

$this->url_data = 'https://gamification.prestashop.com/json/';
if (self::TEST_MODE === true) {
$this->url_data .= 'test/';
}
Expand Down

0 comments on commit 49dfa83

Please sign in to comment.