Skip to content

Commit

Permalink
3.0.7.7: fix countable error
Browse files Browse the repository at this point in the history
  • Loading branch information
exstreme committed Apr 28, 2021
1 parent b9380d2 commit b7c6670
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions administrator/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ class JCommentsVersion
/** @var int Main Release Level */
var $RELEASE = '3.0';
/** @var int Sub Release Level */
var $DEV_LEVEL = '7.6';
var $DEV_LEVEL = '7.7';
/** @var string Development Status */
var $DEV_STATUS = '';
/** @var int Build Number */
var $BUILD = '';
/** @var string Date */
var $RELDATE = '01/04/2021';
var $RELDATE = '29/04/2021';
/** @var string Time */
var $RELTIME = '11:26';
var $RELTIME = '00:26';
/** @var string Timezone */
var $RELTZ = 'GMT+2';

Expand Down
Binary file added com_jcomments_v3.0.7.7.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion jcomments.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<authorUrl>http://www.joomlatune.ru</authorUrl>
<copyright>Copyright 2006-2018 JoomlaTune.ru All rights reserved!</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<version>3.0.7.6</version>
<version>3.0.7.7</version>
<description><![CDATA[JComments lets your users comment on content items.]]></description>

<scriptfile>script.jcomments.php</scriptfile>
Expand Down
3 changes: 3 additions & 0 deletions site/changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
+ adapted for joomla 4.0
+ Added "Accept terms of use" checkbox

3.7.6
# Countable error in template

* -> Security Fix
# -> Bug Fix
$ -> Language fix or change
Expand Down
4 changes: 2 additions & 2 deletions site/tpl/default/tpl_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function JCommentsInitializeForm()
}

$customBBCodes = $this->getVar('comments-form-custombbcodes');
if (count($customBBCodes)) {
if (!empty($customBBCodes)) {
foreach($customBBCodes as $code) {
if ($code->button_enabled) {
$k = 'custombbcode' . $code->id;
Expand All @@ -227,7 +227,7 @@ function JCommentsInitializeForm()
$smiles = $this->getVar( 'comment-form-smiles' );

if (isset($smiles)) {
if (is_array($smiles)&&count($smiles) > 0) {
if (!empty($smiles) > 0) {
$script.="
jcEditor.initSmiles('".$this->getVar( "smilesurl" )."');
";
Expand Down
2 changes: 1 addition & 1 deletion update-jcomments.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<description>JComments lets your users comment on content items</description>
<element>com_jcomments</element>
<type>component</type>
<version>3.0.7.6</version>
<version>3.0.7.7</version>
<infourl title="JComments">https://github.com/exstreme/Jcomments-Recaptcha2</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/exstreme/Jcomments-Recaptcha2/raw/Develop/com_jcomments_v3.0.7.6.zip</downloadurl>
Expand Down

0 comments on commit b7c6670

Please sign in to comment.