Fix translator error reports

This commit is contained in:
Simon Kornblith 2012-01-22 23:31:45 -05:00
parent c00820c128
commit 3079bf3e83

View file

@ -1511,9 +1511,10 @@ Zotero.Translate.Web.prototype.complete = function(returnValue, error) {
}
}
var translator = this.translator[0];
Zotero.getSystemInfo(function(info) {
var postBody = "id=" + encodeURIComponent(this.translator[0].translatorID) +
"&lastUpdated=" + encodeURIComponent(this.translator[0].lastUpdated) +
var postBody = "id=" + encodeURIComponent(translator.translatorID) +
"&lastUpdated=" + encodeURIComponent(translator.lastUpdated) +
"&diagnostic=" + encodeURIComponent(info) +
"&errorData=" + encodeURIComponent(errorString);
Zotero.HTTP.doPost("http://www.zotero.org/repo/report", postBody);