Revision 32217
Added by Argiro Kokogiannaki over 9 years ago
modules/uoa-joomla/branches/october-release/joomla-2.5.3/com_openaire/site/views/claim4/view.html.php | ||
---|---|---|
19 | 19 |
$user = JFactory :: getUser(); |
20 | 20 |
$claim = $this -> getModel(self :: CLAIM); |
21 | 21 |
$search = $this -> getModel(self :: SEARCH); |
22 |
//$piwik = $this -> getModel(self :: PIWIK);
|
|
22 |
$piwik = $this -> getModel(self :: PIWIK); |
|
23 | 23 |
$locale = JFactory :: getLanguage() -> getTag(); |
24 | 24 |
if ($user-> guest) { |
25 | 25 |
$application -> redirect(JRoute :: _('index.php?option=com_users&view=login&return=' . base64_encode(JRoute :: _('index.php?option=com_openaire&view=claim4&Itemid=' . $this -> itemId, FALSE)), FALSE)); |
... | ... | |
40 | 40 |
foreach ($claim -> getSelectedProjects() as $project) |
41 | 41 |
$data .= '&project=' . $project -> id; |
42 | 42 |
$data = substr($data, 1); // get rid of the firs ampersand |
43 |
//$piwik -> track('claimPublications', $data);
|
|
43 |
$piwik -> track('claimPublications', $data); |
|
44 | 44 |
$claim -> claimSelectedPublications($user); |
45 | 45 |
$application -> redirect(JRoute :: _('index.php?option=com_openaire&view=claim4&Itemid=' . $this -> itemId, FALSE)); |
46 | 46 |
return TRUE; |
47 | 47 |
} |
48 |
//JView :: loadHelper('PiwikHelper');
|
|
49 |
//PiwikHelper :: logPageView('viewClaims', '');
|
|
48 |
JView :: loadHelper('PiwikHelper'); |
|
49 |
PiwikHelper :: logPageView('viewClaims', ''); |
|
50 | 50 |
$claimedPublications = $claim -> getClaimedPublications($user); |
51 | 51 |
if ($claimedPublications === NULL) |
52 | 52 |
$this -> claimedPublications = NULL; |
Also available in: Unified diff
uncomment piwik in claim4/view.html.php