Commit 39bf2e1f authored by Freddy's avatar Freddy
Browse files

Change to json

parent 886080b4
......@@ -837,10 +837,10 @@ class Core extends Password {
* @returns Array with missing pages or false if there are no links
*/
public function getMissingLinks ($Site) {
$data = "action=query&format=php&prop=info&generator=links&utf8=1&formatversion=2&gpllimit=max&titles=" . urlencode($Site);
$data = "action=query&format=json&prop=info&generator=links&utf8=1&formatversion=2&gpllimit=max&titles=" . urlencode($Site);
try {
$website = $this->httpRequest($data, $this->job, 'GET');
$website = unserialize($website);
$website = json_decode($website, true);
$answer = $website['query']['pages'];
$result = array();
for ($i = 0; $i < count($answer); $i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment