From c1dd27d7dde1fef0e38bdb08246c66998cc49148 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Wed, 31 Jan 2024 16:30:33 -0600 Subject: [PATCH] Update WikipediaBot.php --- WikipediaBot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);