Commit 90aa92bd authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Merge branch 'master' of git.gmu.edu:srct/go

parents 1636414c 967702e4
......@@ -274,7 +274,7 @@ def redirection(request, short):
from piwikapi.tracking import PiwikTracker
from django.conf import settings
# First, if PIWIK variables are undefined, don't try to push
if settings.PIWIK_SITE_ID is not "" and settings.PIWIK_URL is not "":
if settings.PIWIK_SITE_ID != "" and settings.PIWIK_URL != "":
try:
piwiktracker = PiwikTracker(settings.PIWIK_SITE_ID, request)
piwiktracker.set_api_url(settings.PIWIK_URL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment