Skip to content

Commit

Permalink
Update WikipediaBot.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Jan 31, 2024
1 parent fbf1c01 commit c1dd27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WikipediaBot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c1dd27d

Please sign in to comment.