diff --git a/CHANGELOG.md b/CHANGELOG.md index f6c7fc9c..1172b9f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +###### 4.0.32 +- \# fixed bug #175 +- \# fixed #173 + ###### 4.0.31 - \+ Update for https://github.com/exstreme/Jcomments-4/pull/97 - \+ Added B/C for old components which uses JComments::showComments() method for main JComments::show() method. diff --git a/build/pkg_jcomments.php b/build/pkg_jcomments.php index abbb79a1..8077b35d 100644 --- a/build/pkg_jcomments.php +++ b/build/pkg_jcomments.php @@ -528,7 +528,7 @@ private function displayResults($data)
finish; ?>
next)): ?>
- +
diff --git a/build/pkg_jcomments.xml b/build/pkg_jcomments.xml index 808998e3..722637f5 100644 --- a/build/pkg_jcomments.xml +++ b/build/pkg_jcomments.xml @@ -2,9 +2,9 @@ JComments package JComments team - January 2023 + May 2024 jcomments - 4.0.31 + 4.0.32 https://github.com/exstreme/Jcomments-4 JComments team https://github.com/exstreme/Jcomments-4 diff --git a/component/administrator/controllers/controllerform.php b/component/administrator/controllers/controllerform.php index ccc71169..d33707b7 100644 --- a/component/administrator/controllers/controllerform.php +++ b/component/administrator/controllers/controllerform.php @@ -43,7 +43,7 @@ public function __construct($config = array()) $r = null; if (!preg_match('/(.*)Controller(.*)/i', get_class($this), $r)) { - throw new Exception(JText::_('JLIB_APPLICATION_ERROR_CONTROLLER_GET_NAME'), 500); + throw new Exception(Text::_('JLIB_APPLICATION_ERROR_CONTROLLER_GET_NAME'), 500); } $this->context = strtolower($r[2]); } @@ -123,7 +123,7 @@ public function add() { $this->setRedirect( Route::_($this->getRedirectToList(), false), - JText::_('JLIB_APPLICATION_ERROR_CREATE_RECORD_NOT_PERMITTED'), + Text::_('JLIB_APPLICATION_ERROR_CREATE_RECORD_NOT_PERMITTED'), 'error' ); @@ -182,7 +182,7 @@ public function edit($key = null, $urlVar = null) { $this->holdEditId($context, $recordId); $app->setUserState($context . '.data', null); - $this->setRedirect(JRoute::_($this->getRedirectToItem($recordId), false)); + $this->setRedirect(Route::_($this->getRedirectToItem($recordId), false)); return true; } diff --git a/component/administrator/controllers/controllerlist.php b/component/administrator/controllers/controllerlist.php index 7a3500bc..5e6c9ef6 100644 --- a/component/administrator/controllers/controllerlist.php +++ b/component/administrator/controllers/controllerlist.php @@ -43,7 +43,7 @@ public function __construct($config = array()) $r = null; if (!preg_match('/(.*)Controller(.*)/i', get_class($this), $r)) { - throw new Exception(JText::_('JLIB_APPLICATION_ERROR_CONTROLLER_GET_NAME'), 500); + throw new Exception(Text::_('JLIB_APPLICATION_ERROR_CONTROLLER_GET_NAME'), 500); } $this->context = strtolower($r[2]); } @@ -53,7 +53,7 @@ public function __construct($config = array()) $r = null; if (!preg_match('/(.*)Controller(.*)/i', get_class($this), $r)) { - throw new Exception(JText::_('JLIB_APPLICATION_ERROR_CONTROLLER_GET_NAME'), 500); + throw new Exception(Text::_('JLIB_APPLICATION_ERROR_CONTROLLER_GET_NAME'), 500); } $this->view = strtolower($r[2]); } diff --git a/component/administrator/controllers/settings.raw.php b/component/administrator/controllers/settings.raw.php index 48c5321a..c380f6d8 100644 --- a/component/administrator/controllers/settings.raw.php +++ b/component/administrator/controllers/settings.raw.php @@ -15,6 +15,7 @@ use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; +use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\Controller\BaseController; @@ -51,7 +52,10 @@ public function saveConfig() $app->setHeader('Expires', '-1'); $app->setHeader('Cache-Control', 'public, no-store, no-cache, must-revalidate, post-check=0, pre-check=0', true); $app->setHeader('Content-Transfer-Encoding', 'Binary'); - $app->setHeader('Content-disposition', 'attachment; filename="com_jcomments-settings-' . JHtml::_('date', time(), 'Y-m-d_H-i-s') . '.json"'); + $app->setHeader( + 'Content-disposition', + 'attachment; filename="com_jcomments-settings-' . HTMLHelper::_('date', time(), 'Y-m-d_H-i-s') . '.json"' + ); $app->sendHeaders(); $_access = new Access; diff --git a/component/administrator/controllers/subscriptions.php b/component/administrator/controllers/subscriptions.php index adfbccfe..0d8c9dbf 100644 --- a/component/administrator/controllers/subscriptions.php +++ b/component/administrator/controllers/subscriptions.php @@ -11,6 +11,7 @@ defined('_JEXEC') or die; +use Joomla\CMS\Router\Route; use Joomla\Utilities\ArrayHelper; class JCommentsControllerSubscriptions extends JCommentsControllerList @@ -44,7 +45,7 @@ public function publish() $model->publish($cid, $value); } - $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view, false)); + $this->setRedirect(Route::_('index.php?option=' . $this->option . '&view=' . $this->view, false)); return true; } diff --git a/component/administrator/models/modellist.php b/component/administrator/models/modellist.php index e4c32251..9515ed19 100644 --- a/component/administrator/models/modellist.php +++ b/component/administrator/models/modellist.php @@ -198,7 +198,7 @@ public function saveOrder($pks = null, $order = null) return false; } - $reorderCondition = $this->getReorderConditions(); + $reorderCondition = $this->getReorderConditions($table); $found = false; foreach ($conditions as $condition) diff --git a/component/administrator/tables/blacklist.php b/component/administrator/tables/blacklist.php index 53a06805..8ab201d4 100644 --- a/component/administrator/tables/blacklist.php +++ b/component/administrator/tables/blacklist.php @@ -12,6 +12,7 @@ defined('_JEXEC') or die; use Joomla\CMS\Factory; +use Joomla\CMS\Language\Text; use Joomla\CMS\Table\Table; /** @@ -28,7 +29,7 @@ public function check() { if ($this->ip == $_SERVER['REMOTE_ADDR']) { - $this->setError(JText::_('A_BLACKLIST_ERROR_YOU_CAN_NOT_BAN_YOUR_IP')); + $this->setError(Text::_('A_BLACKLIST_ERROR_YOU_CAN_NOT_BAN_YOUR_IP')); return false; } diff --git a/component/administrator/tables/report.php b/component/administrator/tables/report.php index cd3fe345..aeb99e8d 100644 --- a/component/administrator/tables/report.php +++ b/component/administrator/tables/report.php @@ -11,10 +11,12 @@ defined('_JEXEC') or die; +use Joomla\CMS\Table\Table; + /** * JComments report table */ -class JCommentsTableReport extends JTable +class JCommentsTableReport extends Table { public function __construct($_db) { diff --git a/component/administrator/views/about/view.html.php b/component/administrator/views/about/view.html.php index 0c731319..381989eb 100644 --- a/component/administrator/views/about/view.html.php +++ b/component/administrator/views/about/view.html.php @@ -13,6 +13,7 @@ use Joomla\CMS\Filesystem\Path; use Joomla\CMS\Installer\Installer; +use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; use Joomla\CMS\Toolbar\ToolbarHelper; @@ -46,7 +47,7 @@ public function display($tpl = null) { $this->component = Installer::parseXMLInstallFile(Path::clean(JPATH_ROOT . '/administrator/components/com_jcomments/jcomments.xml')); - ToolbarHelper::title(JText::_('A_SUBMENU_ABOUT')); + ToolbarHelper::title(Text::_('A_SUBMENU_ABOUT')); ToolbarHelper::preferences('com_jcomments'); parent::display($tpl); diff --git a/component/administrator/views/blacklist/tmpl/edit.php b/component/administrator/views/blacklist/tmpl/edit.php index ffe99938..11e95c06 100644 --- a/component/administrator/views/blacklist/tmpl/edit.php +++ b/component/administrator/views/blacklist/tmpl/edit.php @@ -21,40 +21,40 @@ ->useScript('form.validate'); ?>
-
-
-
-
- - -
-
- form->getLabel('ip'); ?> -
-
- form->getInput('ip'); ?> -
-
- - form->renderField('reason'); ?> - - form->renderField('notes'); ?> - - form->renderField('created'); ?> - -
-
- form->getLabel('id'); ?> -
-
- form->getInput('id'); ?> -
-
-
-
-
- - -
+ method="post" name="adminForm" id="item-form" class="form-validate"> +
+
+
+
+ + +
+
+ form->getLabel('ip'); ?> +
+
+ form->getInput('ip'); ?> +
+
+ + form->renderField('reason'); ?> + + form->renderField('notes'); ?> + + form->renderField('created'); ?> + +
+
+ form->getLabel('id'); ?> +
+
+ form->getInput('id'); ?> +
+
+
+
+
+ + +
diff --git a/component/administrator/views/blacklist/view.html.php b/component/administrator/views/blacklist/view.html.php index 26764678..f64aa28a 100644 --- a/component/administrator/views/blacklist/view.html.php +++ b/component/administrator/views/blacklist/view.html.php @@ -12,6 +12,7 @@ defined('_JEXEC') or die; use Joomla\CMS\Factory; +use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; use Joomla\CMS\Toolbar\ToolbarHelper; use Joomla\Component\Content\Administrator\Helper\ContentHelper; @@ -41,7 +42,7 @@ protected function addToolbar() $isNew = ($this->item->id == 0); Factory::getApplication()->input->set('hidemainmenu', 1); - ToolbarHelper::title(JText::_('A_BLACKLIST')); + ToolbarHelper::title(Text::_('A_BLACKLIST')); if (!$checkedOut && $canDo->get('core.edit')) { diff --git a/component/administrator/views/custombbcode/tmpl/edit.php b/component/administrator/views/custombbcode/tmpl/edit.php index 1f49bdb7..66e5e70f 100644 --- a/component/administrator/views/custombbcode/tmpl/edit.php +++ b/component/administrator/views/custombbcode/tmpl/edit.php @@ -13,13 +13,14 @@ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; +use Joomla\CMS\Router\Route; /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('keepalive') ->useScript('form.validate'); ?> -
'general', 'recall' => true, 'breakpoint' => 768]); ?> diff --git a/component/administrator/views/custombbcodes/tmpl/default.php b/component/administrator/views/custombbcodes/tmpl/default.php index 8cd54572..b0a6f596 100644 --- a/component/administrator/views/custombbcodes/tmpl/default.php +++ b/component/administrator/views/custombbcodes/tmpl/default.php @@ -58,7 +58,7 @@ HTMLHelper::_('stylesheet', 'media/com_jcomments/css/backend-style.css'); ?> -
diff --git a/component/administrator/views/custombbcodes/view.html.php b/component/administrator/views/custombbcodes/view.html.php index 3f44dfc5..2752db08 100644 --- a/component/administrator/views/custombbcodes/view.html.php +++ b/component/administrator/views/custombbcodes/view.html.php @@ -11,6 +11,7 @@ defined('_JEXEC') or die; +use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; use Joomla\CMS\Toolbar\Toolbar; use Joomla\CMS\Toolbar\ToolbarHelper; @@ -43,7 +44,7 @@ protected function addToolbar() $toolbar = Toolbar::getInstance('toolbar'); $canDo = ContentHelper::getActions('com_jcomments', 'component'); - ToolbarHelper::title(JText::_('A_SUBMENU_CUSTOM_BBCODE')); + ToolbarHelper::title(Text::_('A_SUBMENU_CUSTOM_BBCODE')); if ($canDo->get('core.create')) { diff --git a/component/administrator/views/smiley/tmpl/edit.php b/component/administrator/views/smiley/tmpl/edit.php index 73e1de91..67bcc3fd 100644 --- a/component/administrator/views/smiley/tmpl/edit.php +++ b/component/administrator/views/smiley/tmpl/edit.php @@ -19,7 +19,7 @@ $wa->useScript('keepalive') ->useScript('form.validate'); ?> -
diff --git a/component/administrator/views/smilies/tmpl/default.php b/component/administrator/views/smilies/tmpl/default.php index 26e660f1..df3c5cdd 100644 --- a/component/administrator/views/smilies/tmpl/default.php +++ b/component/administrator/views/smilies/tmpl/default.php @@ -36,7 +36,7 @@ HTMLHelper::_('draggablelist.draggable'); } ?> -
diff --git a/component/administrator/views/subscriptions/view.html.php b/component/administrator/views/subscriptions/view.html.php index 01826c3f..7aa1825a 100644 --- a/component/administrator/views/subscriptions/view.html.php +++ b/component/administrator/views/subscriptions/view.html.php @@ -11,6 +11,7 @@ defined('_JEXEC') or die; +use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; use Joomla\CMS\Toolbar\Toolbar; use Joomla\CMS\Toolbar\ToolbarHelper; @@ -42,7 +43,7 @@ protected function addToolbar() $toolbar = Toolbar::getInstance('toolbar'); $canDo = ContentHelper::getActions('com_jcomments', 'component'); - ToolbarHelper::title(JText::_('A_SUBMENU_SUBSCRIPTIONS')); + ToolbarHelper::title(Text::_('A_SUBMENU_SUBSCRIPTIONS')); if ($canDo->get('core.create')) { diff --git a/component/jcomments.xml b/component/jcomments.xml index fcc61210..b2813a7f 100644 --- a/component/jcomments.xml +++ b/component/jcomments.xml @@ -5,7 +5,7 @@ JComments team https://github.com/exstreme/Jcomments-4 https://www.gnu.org/copyleft/gpl.html GNU/GPL - 4.0.31 + 4.0.32 JComments lets your users comment on content items. Joomla\Component\Jcomments diff --git a/component/site/classes/factory.php b/component/site/classes/factory.php index 999bf459..5fdef948 100644 --- a/component/site/classes/factory.php +++ b/component/site/classes/factory.php @@ -127,7 +127,7 @@ public static function getTemplate($objectID = 0, $objectGroup = 'com_content', $tmpl->addGlobalVar('comment-object_id', $objectID); $tmpl->addGlobalVar('comment-object_group', $objectGroup); - if ($needThisUrl == true) + if ($needThisUrl) { $tmpl->addGlobalVar('thisurl', JCommentsObject::getLink($objectID, $objectGroup, $language->getTag())); } diff --git a/component/site/helpers/event.php b/component/site/helpers/event.php index 78e02930..77bde15f 100644 --- a/component/site/helpers/event.php +++ b/component/site/helpers/event.php @@ -56,8 +56,6 @@ public static function trigger($event, $args = null) { $result = Factory::getApplication()->triggerEvent($event); } - - } return $result; diff --git a/component/site/helpers/object.php b/component/site/helpers/object.php index 0ee88217..58aa1244 100644 --- a/component/site/helpers/object.php +++ b/component/site/helpers/object.php @@ -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/plugin.php'; require_once JPATH_ROOT . '/components/com_jcomments/classes/security.php'; /** diff --git a/component/site/jcomments.ajax.php b/component/site/jcomments.ajax.php index 0ab27e87..c95016f1 100644 --- a/component/site/jcomments.ajax.php +++ b/component/site/jcomments.ajax.php @@ -19,6 +19,7 @@ use Joomla\CMS\Language\LanguageHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Log\Log; +use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\Table\Table; use Joomla\CMS\User\User; use Joomla\Database\DatabaseDriver; @@ -326,11 +327,11 @@ public static function addComment($values = array()) case 'recaptcha_invisible': if ($captchaEngine == 'recaptcha') { - JPluginHelper::importPlugin('captcha', 'recaptcha'); + PluginHelper::importPlugin('captcha', 'recaptcha'); } else { - JPluginHelper::importPlugin('captcha', 'recaptcha_invisible'); + PluginHelper::importPlugin('captcha', 'recaptcha_invisible'); } try @@ -350,11 +351,11 @@ public static function addComment($values = array()) case 'hcaptcha_invisible': if ($captchaEngine == 'hcaptcha') { - JPluginHelper::importPlugin('captcha', 'hcaptcha'); + PluginHelper::importPlugin('captcha', 'hcaptcha'); } else { - JPluginHelper::importPlugin('captcha', 'hcaptcha_invisible'); + PluginHelper::importPlugin('captcha', 'hcaptcha_invisible'); } try @@ -478,7 +479,7 @@ public static function addComment($values = array()) $comment->parent = isset($values['parent']) ? (int) $values['parent'] : 0; $comment->lang = $lang->getTag(); $comment->ip = $userIP; - $comment->userid = $user->get('id') ? $user->get('id') : 0; + $comment->userid = $user->get('id') ?: 0; $comment->date = Factory::getDate()->toSql(); // Cast to integer value to store in DB. @@ -528,8 +529,10 @@ public static function addComment($values = array()) { require_once JPATH_ROOT . '/components/com_jcomments/models/subscriptions.php'; - $subscriptionModel = new JcommentsModelSubscriptions; - $subscriptionModel->subscribe($comment->object_id, $comment->object_group, $comment->userid, $comment->email, $comment->name, $comment->lang); + $subscriptionModel = new JcommentsModelSubscriptions; + $subscriptionModel->subscribe( + $comment->object_id, $comment->object_group, $comment->userid, $comment->email, $comment->name, $comment->lang + ); } $merged = false; @@ -560,7 +563,7 @@ public static function addComment($values = array()) // Validate new comment text length and if it longer than specified - // disable union current comment with previous if (($needcheck == 0) || (($needcheck == 1) && ($maxlength != 0) - && (StringHelper::strlen($newText) <= $maxlength))) + && (StringHelper::strlen($newText) <= $maxlength))) { $comment->id = $prevComment->id; $comment->comment = $newText; @@ -1015,7 +1018,6 @@ public static function saveComment($values = array()) $comment->comment = $bbcode->filter($comment->comment); $comment->published = (int) $user->authorise('comment.autopublish', 'com_jcomments'); - if (((int) $config->get('comment_title') != 0) && isset($values['title'])) { $comment->title = stripslashes((string) $values['title']); diff --git a/component/site/tpl/default/tpl_email.php b/component/site/tpl/default/tpl_email.php index 3067edba..3bc4ba58 100644 --- a/component/site/tpl/default/tpl_email.php +++ b/component/site/tpl/default/tpl_email.php @@ -9,10 +9,11 @@ * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html */ -use Joomla\CMS\HTML\HTMLHelper; - defined('_JEXEC') or die; +use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Language\Text; + /** * E-mail notification for users */ @@ -21,13 +22,13 @@ class jtt_tpl_email extends JoomlaTuneTemplate function render() { $comment = $this->getVar('comment'); - + $object_title = $this->getVar('comment-object_title'); - $object_link = $this->getVar('comment-object_link'); - $hash = $this->getVar('subscriber-hash'); + $object_link = $this->getVar('comment-object_link'); + $hash = $this->getVar('subscriber-hash'); $link = '' . $object_title . ''; - $unsubscribeMessage = JText::sprintf('NOTIFICATION_COMMENT_UNSUBSCRIBE_MESSAGE', $link); + $unsubscribeMessage = Text::sprintf('NOTIFICATION_COMMENT_UNSUBSCRIBE_MESSAGE', $link); $unsubscribeLink = $this->getVar('notification-unsubscribe-link'); // add inline styles @@ -61,7 +62,7 @@ function render() ?> — date, 'DATE_FORMAT_LC1'); ?>
comment; ?>
-

:

+

:

getVar('comment'); + $comment = $this->getVar('comment'); $object_title = $this->getVar('comment-object_title'); - $object_link = $this->getVar('comment-object_link'); + $object_link = $this->getVar('comment-object_link'); // add inline styles $comment->comment = str_replace('class="quotebody"', 'style="margin: 5px 0 0 0;padding: 8px; border: 1px dashed #aaa;"', $comment->comment); @@ -37,7 +37,7 @@ function render() -

+

#  title != '') { @@ -72,19 +72,19 @@ function render() $commands = array(); if ($comment->published == 0) { - $commands[] = $this->getCmdLink('publish', JText::_('BUTTON_PUBLISH'), $comment); + $commands[] = $this->getCmdLink('publish', Text::_('BUTTON_PUBLISH'), $comment); } else { - $commands[] = $this->getCmdLink('unpublish', JText::_('BUTTON_UNPUBLISH'), $comment); + $commands[] = $this->getCmdLink('unpublish', Text::_('BUTTON_UNPUBLISH'), $comment); } - $commands[] = $this->getCmdLink('delete', JText::_('BUTTON_DELETE'), $comment); + $commands[] = $this->getCmdLink('delete', Text::_('BUTTON_DELETE'), $comment); if ($this->getVar('enable-blacklist') == 1) { - $commands[] = $this->getCmdLink('ban', JText::_('BUTTON_BANIP'), $comment); + $commands[] = $this->getCmdLink('ban', Text::_('BUTTON_BANIP'), $comment); } if (count($commands)) { - echo JText::_('QUICK_MODERATION') . ' ' . implode(' | ', $commands); + echo Text::_('QUICK_MODERATION') . ' ' . implode(' | ', $commands); } } ?> diff --git a/component/site/tpl/default/tpl_email_report.php b/component/site/tpl/default/tpl_email_report.php index a7e39a70..b0d04060 100644 --- a/component/site/tpl/default/tpl_email_report.php +++ b/component/site/tpl/default/tpl_email_report.php @@ -9,10 +9,11 @@ * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html */ -use Joomla\CMS\HTML\HTMLHelper; - defined('_JEXEC') or die; +use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Language\Text; + /** * Template for report to comment message */ @@ -20,10 +21,10 @@ class jtt_tpl_email_report extends JoomlaTuneTemplate { function render() { - $comment = $this->getVar('comment'); - $object_link = $this->getVar('comment-object_link'); - $name = $this->getVar('report-name'); - $reason = $this->getVar('report-reason'); + $comment = $this->getVar('comment'); + $object_link = $this->getVar('comment-object_link'); + $name = $this->getVar('report-name'); + $reason = $this->getVar('report-reason'); // add inline styles $comment->comment = str_replace('class="quotebody"', 'style="margin: 5px 0 0 0;padding: 8px; border: 1px dashed #aaa;"', $comment->comment); @@ -37,7 +38,7 @@ function render() -author, $name); ?> +author, $name); ?>

#comment-id; ?> @@ -46,13 +47,13 @@ function render() -: +:

-: +:

#  @@ -90,19 +91,19 @@ function render() $commands = array(); if ($comment->published == 0) { - $commands[] = $this->getCmdLink('publish', JText::_('BUTTON_PUBLISH'), $comment); + $commands[] = $this->getCmdLink('publish', Text::_('BUTTON_PUBLISH'), $comment); } else { - $commands[] = $this->getCmdLink('unpublish', JText::_('BUTTON_UNPUBLISH'), $comment); + $commands[] = $this->getCmdLink('unpublish', Text::_('BUTTON_UNPUBLISH'), $comment); } - $commands[] = $this->getCmdLink('delete', JText::_('BUTTON_DELETE'), $comment); + $commands[] = $this->getCmdLink('delete', Text::_('BUTTON_DELETE'), $comment); if ($this->getVar('enable-blacklist') == 1) { - $commands[] = $this->getCmdLink('ban', JText::_('BUTTON_BANIP'), $comment); + $commands[] = $this->getCmdLink('ban', Text::_('BUTTON_BANIP'), $comment); } if (count($commands)) { - echo JText::_('QUICK_MODERATION') . ' ' . implode(' | ', $commands); + echo Text::_('QUICK_MODERATION') . ' ' . implode(' | ', $commands); } } ?> diff --git a/update-jcomments.xml b/update-jcomments.xml index 741b40a7..b18275d7 100644 --- a/update-jcomments.xml +++ b/update-jcomments.xml @@ -5,7 +5,7 @@ JComments lets your users comment on content items com_jcomments component - 4.0.31 + 4.0.32 https://github.com/exstreme/Jcomments-4 https://github.com/exstreme/Jcomments-4/releases/download/v4.0.30/pkg_jcomments_4.0.30.zip @@ -17,9 +17,9 @@ https://github.com/exstreme/Jcomments-4 7.2.0 - 63911ce4323414b3afe7e5458c975050aec4084dfe220c249ca9187dd00aa319 - 7c98ffe30ea8471b000859abc7813855b8b05433f4ba4ae26fbfbba7b85562c5e5554f8d99a95ccd2181d42303b6c52d - 978b4db2a98a62031962a3902239a44ea6c00ba02ffddc71a5bc4d95743a9df3b0635e4d9a2a46556c67c07f36aeba0410e174b8d2e31b612533df6658c5734e + d92378fb07ded6732d27f67b418dea8e134f4e08b3dc9905838e311879696a3c + 30fde604e69dea343e463e1c09bb91f52706ff5bda8fa6c4bd7125f84cf0329a3e8b411835863cf350a6e28114879454 + 634cb5b55675d26d96a5e47901e7fdc17a554938cb31897f0602f829a0a897444b91a0d23e5da1c70f1dc43b4f59ea7fec1e2ad574bd17908c00f01ba9472c92