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:
authormattpiwik <matthieu.aubry@gmail.com>2012-11-21 22:55:45 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-11-21 22:55:45 +0400
commit4323ae88ed84fd7b7d1be5e74ab7ca525a9b6332 (patch)
tree3423a8ffd4d5c0e22a42e1f026a3d510b04f85bf /libs
parentfe9052d5bbaa2bcbe78c513a83963d85e0fed79e (diff)
It seems logical that doBulkTrack should require a call to a track Action prior. Should at least help users misusing the class quickly understand.
git-svn-id: http://dev.piwik.org/svn/trunk@7504 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs')
-rw-r--r--libs/PiwikTracker/PiwikTracker.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php
index ffb513a206..44e92c38c5 100644
--- a/libs/PiwikTracker/PiwikTracker.php
+++ b/libs/PiwikTracker/PiwikTracker.php
@@ -424,7 +424,7 @@ class PiwikTracker
if (empty($this->storedTrackingActions))
{
- return '';
+ throw new Exception("Error: you must call the function doTrackPageView or doTrackGoal from this class, before calling this method doBulkTrack()");
}
$data = array('requests' => $this->storedTrackingActions, 'token_auth' => $this->token_auth);