diff --git a/README.md b/README.md
index 9b03f03..15ee151 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# YtVideo
-![Version](https://img.shields.io/badge/VERSION-1.6.0-0366d6.svg?style=for-the-badge)
+![Version](https://img.shields.io/badge/VERSION-1.6.1-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)
diff --git a/README.ru.md b/README.ru.md
index 45645e5..91d800a 100644
--- a/README.ru.md
+++ b/README.ru.md
@@ -1,6 +1,6 @@
# YtVideo
-![Version](https://img.shields.io/badge/VERSION-1.6.0-0366d6.svg?style=for-the-badge)
+![Version](https://img.shields.io/badge/VERSION-1.6.1-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)
diff --git a/pkg_ytvideo.xml b/pkg_ytvideo.xml
index b3164f8..f2fe501 100644
--- a/pkg_ytvideo.xml
+++ b/pkg_ytvideo.xml
@@ -5,12 +5,12 @@
Aleksey A. Morozov
alekvolsk@yandex.ru
https://alekvolsk.pw
- © 2019 Aleksey A. Morozov. All right reserved.
+ © 2020 Aleksey A. Morozov. All right reserved.
GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
- Oktober 2019
+ March 2020
Aleksey A. Morozov
https://alekvolsk.pw
- 1.6.0
+ 1.6.1
PKG_YTVIDEO_DESC
5.6
pkg_script.php
diff --git a/plg_content_ytvideo/ytvideo.php b/plg_content_ytvideo/ytvideo.php
index 573fe95..19b1060 100644
--- a/plg_content_ytvideo/ytvideo.php
+++ b/plg_content_ytvideo/ytvideo.php
@@ -56,8 +56,8 @@ public function onContentPrepare($context, &$article, &$params, $page = 0)
return false;
}
- $cachFolder = Path::clean(Factory::getConfig()->get('cache_path', ''));
- $cachFolder = is_dir($cachFolder) ? $cachFolder . DIRECTORY_SEPARATOR . 'plg_content_ytvideo' . DIRECTORY_SEPARATOR : '';
+ $cachFolder = Path::clean(Factory::getConfig()->get('cache_path', JPATH_CACHE));
+ $cachFolder = $cachFolder . DIRECTORY_SEPARATOR . 'plg_content_ytvideo' . DIRECTORY_SEPARATOR;
if ($cachFolder && !is_dir($cachFolder)) {
JFolder::create($cachFolder, 0755);
}
diff --git a/plg_content_ytvideo/ytvideo.xml b/plg_content_ytvideo/ytvideo.xml
index 7021862..caf589d 100644
--- a/plg_content_ytvideo/ytvideo.xml
+++ b/plg_content_ytvideo/ytvideo.xml
@@ -4,10 +4,10 @@
Aleksey A. Morozov
alekvolsk@yandex.ru
https://alekvolsk.pw
- © 2019 Aleksey A. Morozov. All right reserved.
+ © 2020 Aleksey A. Morozov. All right reserved.
GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
- September 2019
- 1.6.0
+ March 2020
+ 1.6.1
PLG_YTVIDEO_DESC
script.php
diff --git a/plg_editors-xtd_ytvideobtn/ytvideobtn.xml b/plg_editors-xtd_ytvideobtn/ytvideobtn.xml
index 03ee922..2df2c29 100644
--- a/plg_editors-xtd_ytvideobtn/ytvideobtn.xml
+++ b/plg_editors-xtd_ytvideobtn/ytvideobtn.xml
@@ -4,9 +4,9 @@
Aleksey A. Morozov
alekvolsk@yandex.ru
https://alekvolsk.pw
- © 2019 Aleksey A. Morozov. All right reserved.
+ © 2020 Aleksey A. Morozov. All right reserved.
GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
- Oktober 2019
+ March 2020
1.5.4
PLG_EDITORS-XTD_YTVIDEOBTN_XML_DESCRIPTION
script.php