mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Merge pull request #3 from atdt/master
Two tiny nits: don't send isValid; rename 'schema_rev' to 'scid'.
This commit is contained in:
commit
5c8c5848cf
1 changed files with 3 additions and 4 deletions
|
|
@ -69,7 +69,6 @@ public class EventLog {
|
||||||
fullData.put("schema", schema);
|
fullData.put("schema", schema);
|
||||||
fullData.put("revision", rev);
|
fullData.put("revision", rev);
|
||||||
fullData.put("wiki", "commonswiki");
|
fullData.put("wiki", "commonswiki");
|
||||||
fullData.put("isValid", true); // Hehe
|
|
||||||
fullData.put("event", data);
|
fullData.put("event", data);
|
||||||
return new URL(CommonsApplication.EVENTLOG_URL + "?" + Utils.urlEncode(fullData.toString()) + ";");
|
return new URL(CommonsApplication.EVENTLOG_URL + "?" + Utils.urlEncode(fullData.toString()) + ";");
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
|
|
@ -90,10 +89,10 @@ public class EventLog {
|
||||||
return new LogBuilder(schema, revision);
|
return new LogBuilder(schema, revision);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LogBuilder schema(Object[] schema_rev) {
|
public static LogBuilder schema(Object[] scid) {
|
||||||
if(schema_rev.length != 2) {
|
if(scid.length != 2) {
|
||||||
throw new IllegalArgumentException("Needs an object array with schema as first param and revision as second");
|
throw new IllegalArgumentException("Needs an object array with schema as first param and revision as second");
|
||||||
}
|
}
|
||||||
return schema((String)schema_rev[0], (Long)schema_rev[1]);
|
return schema((String)scid[0], (Long)scid[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue