Update EventLog with appropriate wiki name

Helps differentiate between testwiki & commons
This commit is contained in:
YuviPanda 2013-02-28 00:04:26 +05:30
parent e05f55dbff
commit e324206930
2 changed files with 2 additions and 1 deletions

View file

@ -58,6 +58,7 @@ public class CommonsApplication extends Application {
public static final String IMAGE_URL_BASE = "https://upload.wikimedia.org/wikipedia/test";
public static final String HOME_URL = "https://test.wikipedia.org/wiki/";
public static final String EVENTLOG_URL = "https://bits.wikimedia.org/event.gif";
public static final String EVENTLOG_WIKI = "testwiki";
public static final Object[] EVENT_UPLOAD_ATTEMPT = {"MobileAppUploadAttempts", 5257716L};
public static final Object[] EVENT_LOGIN_ATTEMPT = {"MobileAppLoginAttempts", 5257721L};

View file

@ -79,7 +79,7 @@ public class EventLog {
try {
fullData.put("schema", schema);
fullData.put("revision", rev);
fullData.put("wiki", "commonswiki");
fullData.put("wiki", CommonsApplication.EVENTLOG_WIKI);
data.put("device", DEVICE);
data.put("platform", "Android/" + Build.VERSION.RELEASE);
data.put("appversion", "Android/" + CommonsApplication.APPLICATION_VERSION);