Skip to content

Commit

Permalink
Correct bug in reading aliases during piwik site registration.
Browse files Browse the repository at this point in the history
Signed-off-by: Shai Sachs <[email protected]>
  • Loading branch information
Shai Sachs committed May 8, 2013
1 parent 5e63873 commit 89bc765
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hosting_piwik.piwik.inc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ class PiwikAPI {
$i++;
}

for ( ; $i < count($urls); $i++) {
$params["urls[$i]"] = $urls[$i];
foreach ($urls as $url) {
$params["urls[$i]"] = $url;
$i++;
}

$response = $this->_execute_api_call('API', 'SitesManager.addSite',
Expand Down

0 comments on commit 89bc765

Please sign in to comment.