Skip to content

Commit

Permalink
[java][wikibase] make sure item is identified correctly if ID is
Browse files Browse the repository at this point in the history
specified
  • Loading branch information
acstroe committed Jun 12, 2023
1 parent 0ac1986 commit 8148773
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/wikibase/Wikibase.java
Expand Up @@ -90,6 +90,10 @@ public Wikibase() {
*/
public Entity getWikibaseItemBySiteAndTitle(final String site, final String pageName)
throws IOException, WikibaseException {

if ("dwiki".equalsIgnoreCase(site)) {
return getWikibaseItemById(pageName);
}

HashMap<String, String> getParams = new HashMap<>();
HashMap<String, Object> postParams = new HashMap<>();
Expand Down

0 comments on commit 8148773

Please sign in to comment.