diff --git a/WikipediaBot.php b/WikipediaBot.php index d82f589aa6..4268b5db16 100644 --- a/WikipediaBot.php +++ b/WikipediaBot.php @@ -405,7 +405,7 @@ static public function get_links(string $title) : string { static public function GetAPage(string $title) : string { curl_setopt_array(self::$ch_logout, [CURLOPT_POST => TRUE, - CURLOPT_POSTFIELDS => http_build_query($params), + CURLOPT_POSTFIELDS => http_build_query(['title' => $title, 'action' =>'raw']), CURLOPT_HTTPHEADER => [], CURLOPT_URL => API_ROOT]); $text = (string) @curl_exec(self::$ch_logout);