From 59de551e763201398ef9b852c584e742a2947be5 Mon Sep 17 00:00:00 2001 From: Ilyas Ronef Date: Wed, 6 May 2020 21:08:46 +0300 Subject: [PATCH] * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.32 is required. * Compatibility with (MODX)EvolutionCMS.libraries.ddTools >= 0.32. --- README.md | 2 +- README_ru.md | 2 +- composer.json | 2 +- ddTypograph_snippet.php | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9a3d74c..53bcdf8 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The snippet doesn’t use third-party services, also it sends no requests. In ot ## Requires * PHP >= 5.4 -* [(MODX)EvolutionCMS.libraries.ddTools](https://code.divandesign.biz/modx/ddtools) >= 0.21 +* [(MODX)EvolutionCMS.libraries.ddTools](https://code.divandesign.biz/modx/ddtools) >= 0.32 * [PHP.libraries.EMT](http://mdash.ru) 3.5 (contains in archive) diff --git a/README_ru.md b/README_ru.md index 59438a0..db6ec3b 100644 --- a/README_ru.md +++ b/README_ru.md @@ -6,7 +6,7 @@ ## Использует * PHP >= 5.4 -* [(MODX)EvolutionCMS.libraries.ddTools](https://code.divandesign.biz/modx/ddtools) >= 0.21 +* [(MODX)EvolutionCMS.libraries.ddTools](https://code.divandesign.biz/modx/ddtools) >= 0.32 * [PHP.libraries.EMT](http://mdash.ru) 3.5 (содержится в архиве) diff --git a/composer.json b/composer.json index edfb300..3022b1a 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,6 @@ ], "require": { "php": ">=5.4.0", - "dd/modxevo-library-ddtools": ">=0.21.0" + "dd/modxevo-library-ddtools": ">=0.32.0" } } \ No newline at end of file diff --git a/ddTypograph_snippet.php b/ddTypograph_snippet.php index 298b6cd..fb41c4f 100644 --- a/ddTypograph_snippet.php +++ b/ddTypograph_snippet.php @@ -38,15 +38,15 @@ ); //Для обратной совместимости - extract(\ddTools::verifyRenamedParams( - $params, - [ + extract(\ddTools::verifyRenamedParams([ + 'params' => $params, + 'compliance' => [ 'optAlign' => 'OptAlign', 'text_paragraphs' => 'Text_paragraphs', 'text_autoLinks' => 'Text_autoLinks', 'etc_unicodeConvert' => 'Etc_unicodeConvert' ] - )); + ])); //Safe tags $excludeTags =