Skip to content

Commit

Permalink
fix php version
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed Dec 9, 2016
1 parent 70be629 commit 21b7a4d
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 17 deletions.
2 changes: 1 addition & 1 deletion myjbzoostat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<authorUrl>http://cb9t.ru</authorUrl>
<copyright></copyright>
<license></license>
<version>2.5.10</version>
<version>2.5.11</version>
<description><![CDATA[MyJBZooStat - это компонент статистики и менеджер системы комментирования Disqus.<br><br><iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://tpv.sr/1QoBNn1/' width='510' height='300'></iframe>]]> </description>
<creationDate>28 June 2016</creationDate>
<administration>
Expand Down
8 changes: 4 additions & 4 deletions updatemyjbzoostat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<description>MyJBZooStat</description>
<element>com_slogin</element>
<type>component</type>
<version>2.5.10</version>
<infourl title="MyJBZooStat 2.5.10">
<version>2.5.11</version>
<infourl title="MyJBZooStat 2.5.11">
https://github.com/CB9TOIIIA/MyJBZooStat/
</infourl>
<downloads>
<downloadurl type="full" format="zip">
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
</downloadurl>
</downloads>
<tags>
Expand All @@ -20,7 +20,7 @@
<maintainer>CB9TOIIIA</maintainer>
<maintainerurl>https://github.com/CB9TOIIIA</maintainerurl>
<section>Updates</section>
<targetplatform name="joomla" version="3.6"/>
<targetplatform name="joomla" version="3.4"/>
<client>1</client>
<folder/>
</update>
Expand Down
5 changes: 4 additions & 1 deletion views/articles/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 4 additions & 1 deletion views/auhorsprofile/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 4 additions & 1 deletion views/autors/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
7 changes: 5 additions & 2 deletions views/disqus/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 4 additions & 1 deletion views/disqus/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 4 additions & 1 deletion views/index/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 4 additions & 1 deletion views/orders/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 4 additions & 1 deletion views/report/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 4 additions & 1 deletion views/reportauthors/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 4 additions & 1 deletion views/social/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 4 additions & 1 deletion views/tags/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 21b7a4d

Please sign in to comment.