Skip to content

Commit

Permalink
5.1.1
Browse files Browse the repository at this point in the history
Joomla 5.x compatibility
  • Loading branch information
conseilgouz committed Sep 12, 2023
1 parent 4eac02a commit 67ffcf0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion autoreadmore.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(&$subject, $config)

$j = new Version();
$version=substr($j->getShortVersion(), 0,1);
if ($version != "4") { // Joomla 4.0
if ($version < "4") { // Joomla 4.0
JLoader::registerNamespace('ConseilGouz\Plugin\Content\Autoreadmore', JPATH_SITE . '/plugins/content/autoreadmore/src', false, false, 'psr4');
}
}
Expand Down
4 changes: 2 additions & 2 deletions autoreadmore.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.10" type="plugin" group="content" method="upgrade">
<name>PLG_CONTENT_AUTOREADMORE_TITLE</name>
<creationDate>2023-03-07</creationDate>
<creationDate>2023-09-12</creationDate>
<copyright>Copyright (C) 2023 Conseilgouz All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
<author>ConseilGouz</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.conseilgouz.com</authorUrl>
<version>5.1.0</version>
<version>5.1.1</version>
<description>PLG_CONTENT_AUTOREADMORE_THANK_YOU_FOR_USING_AUTO_READ_MORE</description>
<namespace path="src">ConseilGouz\Plugin\Content\Autoreadmore</namespace>
<files>
Expand Down
11 changes: 11 additions & 0 deletions plg_autoreadmore_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<changelogs>
<changelog>
<element>autoreadmore</element>
<type>plugin</type>
<version>5.1.1</version>
<note>
<item>12/09/2023</item>
</note>
<fix>
<item>Joomla 5.x compatibility</item>
</fix>
</changelog>
<changelog>
<element>autoreadmore</element>
<type>plugin</type>
Expand Down
6 changes: 4 additions & 2 deletions scriptfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Filesystem\Folder;
use Joomla\Filesystem\Folder;
use Joomla\CMS\Version;
use Joomla\CMS\Filesystem\File;
use Joomla\Filesystem\File;

class plgContentAutoreadmoreInstallerScript {

private $extname = 'autoreadmore';
private $min_joomla_version = '3.10.0';
private $min_php_version = '7.2';
private $dir;
private $lang;

public function __construct()
{
Expand Down

0 comments on commit 67ffcf0

Please sign in to comment.