Skip to content

Commit 5cecba0

Browse files
committed
Github ratelimiting issue. Temporary fix until Hitesh is back.
1 parent ef4f5fe commit 5cecba0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plg_jdbuilder/libraries/jdpagebuilder/Helper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ public static function JDBParams($object, $prefix = '', $postfix = '')
22792279

22802280
public static function getJDBuilderLatestVersion()
22812281
{
2282-
$client = new CurlHttpClient();
2282+
/* $client = new CurlHttpClient();
22832283
$response = $client->request('GET', 'https://api.github.com/repos/joomdev/JD-Builder/releases', [
22842284
'headers' => [
22852285
'User-Agent' => 'JOOMDEV-API',
@@ -2295,6 +2295,7 @@ public static function getJDBuilderLatestVersion()
22952295
22962296
$releases = (string) $response->getContent();
22972297
$releases = \json_decode($releases, true);
2298-
return $releases[0]['tag_name'];
2298+
return $releases[0]['tag_name']; */
2299+
return 1.11.2;
22992300
}
23002301
}

0 commit comments

Comments
 (0)