Skip to content

Commit

Permalink
Merge pull request #32
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
exstreme authored Dec 3, 2021
2 parents 1369107 + 4c4468d commit d02919a
Show file tree
Hide file tree
Showing 103 changed files with 1,435 additions and 4,543 deletions.
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>https://github.com/exstreme/Jcomments-4</authorUrl>
<copyright>Copyright 2006-2021 JoomlaTune.ru All rights reserved!</copyright>
<license>https://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<version>4.0.4</version>
<version>4.0.5</version>
<description>JComments lets your users comment on content items.</description>

<install>
Expand Down
9 changes: 4 additions & 5 deletions pkg_jcomments.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Filesystem\Folder;
use Joomla\CMS\Filesystem\Path;
use Joomla\CMS\Form\Form;
use Joomla\CMS\Installer\Installer;
Expand Down Expand Up @@ -330,10 +329,10 @@ private function setComponentParams()
{
$params[$fieldname] = json_decode($field->getAttribute('default'));
}
elseif (!is_null($field->getAttribute('multiple')))
{
$params[$fieldname] = explode(',', $field->getAttribute('default'));
}
elseif (!is_null($field->getAttribute('multiple')))
{
$params[$fieldname] = explode(',', $field->getAttribute('default'));
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg_jcomments.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<author>JComments team</author>
<creationDate>November 2021</creationDate>
<packagename>jcomments</packagename>
<version>4.0.4</version>
<version>4.0.5</version>
<url>https://github.com/exstreme/Jcomments-4</url>
<packager>JComments team</packager>
<packagerurl>https://github.com/exstreme/Jcomments-4</packagerurl>
Expand Down
1 change: 0 additions & 1 deletion site/classes/acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

defined('_JEXEC') or die;

use Joomla\CMS\Access\Access;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;

Expand Down
5 changes: 3 additions & 2 deletions site/helpers/object.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

require_once JPATH_ROOT . '/components/com_jcomments/models/object.php';
require_once JPATH_ROOT . '/components/com_jcomments/classes/objectinfo.php';
require_once JPATH_ROOT . '/components/com_jcomments/classes/security.php';

/**
* JComments objects frontend helper
Expand Down Expand Up @@ -246,8 +247,8 @@ public static function storeObjectInfo($objectID, $objectGroup = 'com_content',
{
if ($app->isClient('administrator'))
{
// We do not have to update object's link from backend
$info->link = null;
// We do not have to update object's link from backend. But if link is empty somehow, do update.
$info->link = str_replace('administrator/', '', $info->link);
}

// Insert/update object information
Expand Down
44 changes: 0 additions & 44 deletions site/plugins/com_acepolls.plugin.php

This file was deleted.

39 changes: 0 additions & 39 deletions site/plugins/com_adsmanager.plugin.php

This file was deleted.

39 changes: 0 additions & 39 deletions site/plugins/com_allevents.plugin.php

This file was deleted.

43 changes: 0 additions & 43 deletions site/plugins/com_apoll.plugin.php

This file was deleted.

Loading

0 comments on commit d02919a

Please sign in to comment.