Skip to content

Commit b425eef

Browse files
author
Oliver Keyes
committed
Fix content bug (bigger release coming soon)
1 parent 37d7848 commit b425eef

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: WikipediR
22
Type: Package
33
Title: A MediaWiki API Wrapper
4-
Version: 1.5.0
5-
Date: 2017-02-04
4+
Version: 1.6.0
5+
Date: 2017-11-06
66
Author: Oliver Keyes [aut, cre], Brock Tilbert [ctb], Clemens Schmid [aut]
77
Maintainer: Oliver Keyes <ironholds@gmail.com>
88
Description: A wrapper for the MediaWiki API, aimed particularly at the

R/content.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ page_content <- function(language = NULL, project = NULL, domain = NULL,
134134
prop = properties
135135
)
136136
if(!is.null(page_id)){
137-
query_param$page_id <- handle_limits(page_id, 1)
137+
query_param$pageid <- handle_limits(page_id, 1)
138138
} else {
139139
query_param$page <- handle_limits(page_name, 1)
140140
}

R/parse.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ parse_response.rchanges <- function(x){
66
x <- x$query$recentchanges
77
return(x)
88
}
9+
910
parse_response.rcontent <- function(x){
1011
x <- x$query$pages
1112
names(x) <- NULL
1213
return(x)
1314
}
1415

16+
parse_response.pcontent <- function(x){
17+
x <- x$parse
18+
return(x)
19+
}
20+
1521
parse_response.rdiff <- function(x){
1622
x <- x$query$pages
1723
names(x) <- NULL

0 commit comments

Comments
 (0)