Piwik: Use unicode for titles

This commit is contained in:
Adrian Moennich 2016-08-23 20:36:56 +02:00
parent 72bc839a49
commit 3c9f281b40

View File

@ -99,10 +99,10 @@ class PiwikPlugin(IndicoPlugin):
return
if attachment.type == AttachmentType.link:
resource_url = attachment.link_url
resource_title = 'Link - {0.title}'.format(attachment)
resource_title = u'Link - {0.title}'.format(attachment)
else:
resource_url = request.base_url
resource_title = 'Download - {0.title}'.format(attachment)
resource_title = u'Download - {0.title}'.format(attachment)
track_download_request.delay(resource_url, resource_title)
def _extend_indico_help(self, sender, **kwargs):