You are here

function piwik_update_7200 in Piwik Web Analytics 7.2

Same name and namespace in other branches
  1. 6.2 piwik.install \piwik_update_7200()

Add trailing slash to piwik URLs.

File

./piwik.install, line 169
Installation file for Piwik - Web analytics module.

Code

function piwik_update_7200() {
  $url_http = variable_get('piwik_url_http', '');
  $url_https = variable_get('piwik_url_https', '');
  if (!empty($url_http)) {
    variable_set('piwik_url_http', $url_http . '/');
  }
  if (!empty($url_https)) {
    variable_set('piwik_url_https', $url_https . '/');
  }
  return t('Added trailing slash to piwik URLs.');
}