commit 3079bf3e83a63aab5e97dceff4670509e2153606 parent c00820c12863cdfdbbf4c6c7eb36709aceba74b1 Author: Simon Kornblith <simon@simonster.com> Date: Sun, 22 Jan 2012 23:31:45 -0500 Fix translator error reports Diffstat:
| M | chrome/content/zotero/xpcom/translation/translate.js | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -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);