Skip to content

Commit

Permalink
Prevent changelog redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
MatzeKitt committed Aug 12, 2024
1 parent 0c42b0d commit ef7fb54
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions includes/Wpup/Epiphyt_Server.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ private function get_api_data( $data = [] ) {
private function get_changelog( array $meta, string $locale ): array {
$urls = [
'impressum' => [
'default' => 'https://impressum.plus/en/documentation/',
'german' => 'https://impressum.plus/dokumentation/',
'default' => 'https://impressum.plus/en/documentation/?redirected-locale=1',
'german' => 'https://impressum.plus/dokumentation/?redirected-locale=1',
],
'form-block-pro' => [
'default' => 'https://formblock.pro/en/documentation/',
'german' => 'https://formblock.pro/dokumentation/',
'default' => 'https://formblock.pro/en/documentation/?redirected-locale=1',
'german' => 'https://formblock.pro/dokumentation/?redirected-locale=1',
],
];

Expand Down Expand Up @@ -242,7 +242,6 @@ private function get_single_api_data( $url, $data = [] ) {
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => $header,

] );

$response = curl_exec( $curl );
Expand Down

0 comments on commit ef7fb54

Please sign in to comment.