Skip to content

Commit a705bb3

Browse files
committed
Version 2.3.1
2 parents f365507 + 1cf9ad8 commit a705bb3

7 files changed

Lines changed: 15 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# (MODX)EvolutionCMS.snippets.ddMakeHttpRequest changelog
22

33

4+
## Version 2.3.1 (2021-04-17)
5+
* \* `\ddMakeHttpRequest\Snippet::run`: Fixed checking of a non-existent array element.
6+
7+
48
## Version 2.3 (2021-04-13)
59
* \+ `\ddMakeHttpRequest\Snippet::run`: Improved “manual” redirection.
610

CHANGELOG_ru.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# (MODX)EvolutionCMS.snippets.ddMakeHttpRequest changelog
22

33

4+
## Версия 2.3.1 (2021-04-17)
5+
* \* `\ddMakeHttpRequest\Snippet::run`: Исправлена проверка несуществующего элемента массива.
6+
7+
48
## Версия 2.3 (2021-04-13)
59
* \+ `\ddMakeHttpRequest\Snippet::run`: Улучшен «ручной» редирект.
610

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Supports redirects even if native CURL redirects is unavailable.
2020
#### 1. Elements → Snippets: Create a new snippet with the following data
2121

2222
1. Snippet name: `ddMakeHttpRequest`.
23-
2. Description: `<b>2.3</b> Makes HTTP request to a given URL.`.
23+
2. Description: `<b>2.3.1</b> Makes HTTP request to a given URL.`.
2424
3. Category: `Core`.
2525
4. Parse DocBlock: `no`.
2626
5. Snippet code (php): Insert content of the `ddMakeHttpRequest_snippet` file from the archive.

README_ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами
2121

2222
1. Название сниппета: `ddMakeHttpRequest`.
23-
2. Описание: `<b>2.3</b> Makes HTTP request to a given URL.`.
23+
2. Описание: `<b>2.3.1</b> Отправляет HTTP запрос к заданному URL.`.
2424
3. Категория: `Core`.
2525
4. Анализировать DocBlock: `no`.
2626
5. Код сниппета (php): Вставьте содержимое файла `ddMakeHttpRequest_snippet` из архива.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dd/evolutioncms-snippets-ddmakehttprequest",
33
"type": "modxevo-snippet",
4-
"version": "2.3.0",
4+
"version": "2.3.1",
55
"description": "Makes HTTP request to a given URL.",
66
"keywords": [
77
"modx",

ddMakeHttpRequest_snippet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* ddMakeHttpRequest
4-
* @version 2.3 (2021-04-13)
4+
* @version 2.3.1 (2021-04-17)
55
*
66
* @see README.md
77
*

src/Snippet.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class Snippet extends \DDTools\Snippet {
55
protected
6-
$version = '2.3.0',
6+
$version = '2.3.1',
77

88
$params = [
99
//Defaults
@@ -70,7 +70,7 @@ protected function prepareParams($params = []){
7070

7171
/**
7272
* run
73-
* @version 1.1 (2021-04-13)
73+
* @version 1.1.1 (2021-04-17)
7474
*
7575
* @return {string}
7676
*/
@@ -346,7 +346,7 @@ public function run(){
346346
$redirectUrl['host'] .
347347
$redirectUrl['path'] .
348348
(
349-
$redirectUrl['query'] ?
349+
!empty($redirectUrl['query']) ?
350350
'?' . $redirectUrl['query'] :
351351
''
352352
)

0 commit comments

Comments
 (0)