File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
22221 . 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. ` .
24243 . Category: ` Core ` .
25254 . Parse DocBlock: ` no ` .
26265 . Snippet code (php): Insert content of the ` ddMakeHttpRequest_snippet ` file from the archive.
Original file line number Diff line number Diff line change 2020#### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами
2121
22221 . Название сниппета: ` ddMakeHttpRequest ` .
23- 2 . Описание: ` <b>2.3</b> Makes HTTP request to a given URL. ` .
23+ 2 . Описание: ` <b>2.3.1 </b> Отправляет HTTP запрос к заданному URL. ` .
24243 . Категория: ` Core ` .
25254 . Анализировать DocBlock: ` no ` .
26265 . Код сниппета (php): Вставьте содержимое файла ` ddMakeHttpRequest_snippet ` из архива.
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 *
Original file line number Diff line number Diff line change 33
44class 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 )
You can’t perform that action at this time.
0 commit comments