Skip to content

Commit

Permalink
4.0.7
Browse files Browse the repository at this point in the history
PHP 8.2 compatibility
  • Loading branch information
conseilgouz committed Mar 7, 2023
1 parent 1df023a commit 708272d
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 16 deletions.
Binary file modified packages/plg_extravote_content.zip
Binary file not shown.
7 changes: 3 additions & 4 deletions packages/plg_extravote_content/extravote.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ------------------------------------------------------------------------
# author Conseilgouz
# from joomlahill Plugin
# Copyright (C) 2022 www.conseilgouz.com. All Rights Reserved.
# Copyright (C) 2023 www.conseilgouz.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
-------------------------------------------------------------------------*/

Expand All @@ -20,7 +20,7 @@
class plgContentExtraVote extends CMSPlugin
{
protected $article_id;

protected $view;
public function __construct(& $subject, $config)
{
parent::__construct($subject, $config);
Expand Down Expand Up @@ -77,7 +77,6 @@ protected function ContentExtraVote(&$article, &$params)

protected function plgContentExtraVoteStars( $id, $rating_sum, $rating_count, $xid, $ip )
{
$document = Factory::getDocument();
$plg = 'media/plg_content_extravote/';
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
Expand All @@ -98,7 +97,7 @@ protected function plgContentExtraVoteStars( $id, $rating_sum, $rating_count, $x
$rating = 0;

if(!$plgContentExtraVoteAddScript){
$document->addScriptDeclaration("
$wa->addInlineStyle("
var ev_basefolder = '".JURI::base(true)."';
var extravote_text=Array('".
TEXT::_('PLG_CONTENT_EXTRAVOTE_MESSAGE_NO_AJAX')."','".
Expand Down
6 changes: 3 additions & 3 deletions packages/plg_extravote_content/extravote.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension version="4.0" type="plugin" group="content" method="upgrade">
<name>PLG_CONTENT_EXTRAVOTE</name>
<author>ConseilGouz</author>
<creationDate>May 2022</creationDate>
<copyright>Copyright (C) 2022 Conseilgouz. All rights reserved.</copyright>
<creationDate>2023/03/07</creationDate>
<copyright>Copyright (C) 2023 Conseilgouz. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>https://www.conseilgouz.com</authorUrl>
<version>4.0.6</version>
<version>4.0.7</version>
<description>PLG_CONTENT_EXTRAVOTE_XML_DESCRIPTION</description>

<scriptfile>extravote.scriptfile.php</scriptfile>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; $Id: fr-FR.plg_ajax_extravote.ini 2022 ConseilGouz $
; $Id: fr-FR.plg_ajax_extravote.ini 2023 ConseilGouz $
; from joomlahill ExtraVote
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; $Id: fr-FR.plg_ajax_extravote.ini 2022 ConseilGouz $
; $Id: fr-FR.plg_ajax_extravote.ini 2023 ConseilGouz $
; from joomlahill ExtraVote
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; $Id: fr-FR.plg_content_extravote.ini 2022 ConseilGouz $
; $Id: fr-FR.plg_content_extravote.ini 2023 ConseilGouz $
; from joomlahill ExtraVote
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; $Id: fr-FR.plg_ajax_extravote.ini 2022 ConseilGouz $
; $Id: fr-FR.plg_ajax_extravote.ini 2023 ConseilGouz $
; from joomlahill ExtraVote
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
Expand Down
12 changes: 8 additions & 4 deletions pkg_extravote.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@
type="package" method="upgrade">
<name>ExtraVote</name>
<author>Conseilgouz</author>
<creationDate>May 2022</creationDate>
<creationDate>2023/03/07</creationDate>
<packagename>extravote</packagename>
<copyright>Copyright (C) 2022 Conseilgouz. All rights reserved.</copyright>
<copyright>Copyright (C) 2023 Conseilgouz. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>https://www.conseilgouz.com</authorUrl>
<version>4.0.6</version>
<version>4.0.7</version>
<description>Extravote provides the ajax, 5 star rating feature to your Joomla Content.</description>
<files folder="packages">
<file type="plugin" id="extravote" group="content">plg_extravote_content.zip</file>
<file type="plugin" id="extravote" group="ajax">plg_extravote_ajax.zip</file>
</files>
<changelogurl>
https://raw.githubusercontent.com/conseilgouz/pkg_extravote_j4/master/plg_autoreadmore_changelog.xml
</changelogurl>

<updateservers>
<server type="extension" name="Extravote" priority="1">https://www.conseilgouz.com/updates/pkg_extravote_update.xml</server>
<server type="extension" name="Extravote" priority="1">https://raw.githubusercontent.com/conseilgouz/updates_github/master/pkg_extravote_update.xml</server>
</updateservers>

</extension>
16 changes: 15 additions & 1 deletion pkg_extravote_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
<changelogs>
<changelog>
<element>extravote</element>
<type>package</type>
<version>4.0.7</version>
<note>
<item>Update :07/03/2023</item>
</note>
<fix>
<item>PHP 8.2 compatibility</item>
</fix>
<change>
<item>Update/changelog on github</item>
</change>
</changelog>
<changelog>
<element>extravote</element>
<type>package</type>
Expand All @@ -8,7 +22,7 @@
</note>
<addition>
<item>use WebAssets</item>
</fix>
</addition>
</changelog>
<changelog>
<element>extravote</element>
Expand Down

0 comments on commit 708272d

Please sign in to comment.