Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJohn Maguire <contact@johnmaguire.me>2015-12-22 03:31:50 +0300
committerJohn Maguire <contact@johnmaguire.me>2015-12-22 03:31:50 +0300
commitc145963a12a5bf7605fff1d72333a747a24442d3 (patch)
treee38e09727228d45eeea97c2565a8d81a32ec1c4c /libs
parent216e922e2ae34c48e0e56d72cb13808e3158f511 (diff)
Add version test Exception in PiwikTracker.php
Diffstat (limited to 'libs')
-rw-r--r--libs/PiwikTracker/PiwikTracker.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php
index 834797a0de..f5b6fad9aa 100644
--- a/libs/PiwikTracker/PiwikTracker.php
+++ b/libs/PiwikTracker/PiwikTracker.php
@@ -13,3 +13,7 @@
if (!class_exists('PiwikTracker')) {
require_once __DIR__ . '/../../vendor/piwik/piwik-php-tracker/PiwikTracker.php';
}
+
+if (PiwikTracker::VERSION !== 1) {
+ throw new Exception("Expected PiwikTracker in libs/PiwikTracker/PiwikTracker.php to be version 1 for keeping backward compatibility.");
+}