From 21b7a4d8f8d10a8550f201fdcb34dd38a726c295 Mon Sep 17 00:00:00 2001 From: CB9TOIIIA Date: Fri, 9 Dec 2016 13:29:14 +0300 Subject: [PATCH] fix php version --- myjbzoostat.xml | 2 +- updatemyjbzoostat.xml | 8 ++++---- views/articles/view.html.php | 5 ++++- views/auhorsprofile/view.html.php | 5 ++++- views/autors/view.html.php | 5 ++++- views/disqus/tmpl/default.php | 7 +++++-- views/disqus/view.html.php | 5 ++++- views/index/view.html.php | 5 ++++- views/orders/view.html.php | 5 ++++- views/report/view.html.php | 5 ++++- views/reportauthors/view.html.php | 5 ++++- views/social/view.html.php | 5 ++++- views/tags/view.html.php | 5 ++++- 13 files changed, 50 insertions(+), 17 deletions(-) diff --git a/myjbzoostat.xml b/myjbzoostat.xml index 7d940cc..86dbcb7 100644 --- a/myjbzoostat.xml +++ b/myjbzoostat.xml @@ -6,7 +6,7 @@ http://cb9t.ru - 2.5.10 + 2.5.11
]]>
28 June 2016 diff --git a/updatemyjbzoostat.xml b/updatemyjbzoostat.xml index fa8854f..73a2652 100644 --- a/updatemyjbzoostat.xml +++ b/updatemyjbzoostat.xml @@ -5,13 +5,13 @@ MyJBZooStat com_slogin component - 2.5.10 - + 2.5.11 + https://github.com/CB9TOIIIA/MyJBZooStat/ - https://github.com/CB9TOIIIA/MyJBZooStat/releases/download/2.5.10/com_myjbzoostat_stable_2.5.10.zip + https://github.com/CB9TOIIIA/MyJBZooStat/releases/download/2.5.11/com_myjbzoostat_stable_2.5.11.zip @@ -20,7 +20,7 @@ CB9TOIIIA https://github.com/CB9TOIIIA
Updates
- + 1 diff --git a/views/articles/view.html.php b/views/articles/view.html.php index a8c2bb2..099e398 100644 --- a/views/articles/view.html.php +++ b/views/articles/view.html.php @@ -97,7 +97,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/auhorsprofile/view.html.php b/views/auhorsprofile/view.html.php index 65f7ec2..f834cd9 100644 --- a/views/auhorsprofile/view.html.php +++ b/views/auhorsprofile/view.html.php @@ -99,7 +99,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/autors/view.html.php b/views/autors/view.html.php index 2480a02..0153c87 100644 --- a/views/autors/view.html.php +++ b/views/autors/view.html.php @@ -96,7 +96,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/disqus/tmpl/default.php b/views/disqus/tmpl/default.php index 4484edc..76100b2 100644 --- a/views/disqus/tmpl/default.php +++ b/views/disqus/tmpl/default.php @@ -19,9 +19,12 @@ $JBZooSEFzoo_route_caching = $checkJBZooSEF->get('zoo_route_caching'); -if (version_compare(PHP_VERSION, '5.5.30') >= 0) +preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); +$MyPHPv = $MyPHPver[0]; + +if ($MyPHPv <= '5.5.30') { - die('Вам нужно обновить PHP до ' . '5.5.30' . ' или выше, чтобы использовать Disqus!'); + die('Вам нужно обновить PHP до ' . '5.5.30' . ' или выше, чтобы использовать Disqus!'); } require_once JPATH_ADMINISTRATOR . '/components/com_myjbzoostat/elements/paramsetc.php'; diff --git a/views/disqus/view.html.php b/views/disqus/view.html.php index dcf95f0..f0eb8a7 100644 --- a/views/disqus/view.html.php +++ b/views/disqus/view.html.php @@ -94,7 +94,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/index/view.html.php b/views/index/view.html.php index 0d75a68..43bb11d 100644 --- a/views/index/view.html.php +++ b/views/index/view.html.php @@ -95,7 +95,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/orders/view.html.php b/views/orders/view.html.php index 43a3915..640229d 100644 --- a/views/orders/view.html.php +++ b/views/orders/view.html.php @@ -98,7 +98,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/report/view.html.php b/views/report/view.html.php index 522c3ad..ef6cfcc 100644 --- a/views/report/view.html.php +++ b/views/report/view.html.php @@ -97,7 +97,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/reportauthors/view.html.php b/views/reportauthors/view.html.php index 87d3767..fa1fe98 100644 --- a/views/reportauthors/view.html.php +++ b/views/reportauthors/view.html.php @@ -98,7 +98,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/social/view.html.php b/views/social/view.html.php index 083f7e1..1f260d4 100644 --- a/views/social/view.html.php +++ b/views/social/view.html.php @@ -97,7 +97,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus'); diff --git a/views/tags/view.html.php b/views/tags/view.html.php index d2cb612..c0eb597 100644 --- a/views/tags/view.html.php +++ b/views/tags/view.html.php @@ -98,7 +98,10 @@ protected function _setToolBar() JToolBarHelper::divider(); - if (version_compare(PHP_VERSION, '5.5.30') >= 0) + preg_match("/\d{1,}.\d{1,}.\d{1,}/", PHP_VERSION, $MyPHPver); + $MyPHPv = $MyPHPver[0]; + + if ($MyPHPv >= '5.5.30') { $bar = JToolBar::getInstance('toolbar'); $title = JText::_('Disqus');