Skip to content

Commit

Permalink
Merge pull request #10 from J2Store4/uninstall_issue
Browse files Browse the repository at this point in the history
we have improved a script for uninstall
  • Loading branch information
Thomastomy2001 authored Jan 16, 2024
2 parents 464ab75 + c14cd9d commit 0fbecbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions j2migrationchecker.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2.0" method="upgrade">
<name>J2Migration checker</name>
<creationDate>AUG 2023</creationDate>
<creationDate>JAN 2024</creationDate>
<author>Thomas</author>
<copyright>Copyright (c) 2023 Cartrabbit. All rights reserved.</copyright>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.j2store.org</authorUrl>
<version>1.0.1</version>
<version>1.0.3</version>
<license>https://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description>J2store V4 Migration check</description>
<scriptfile>script.j2migrationchecker.php</scriptfile>
Expand Down
2 changes: 1 addition & 1 deletion script.j2migrationchecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function preflight($type, $parent)
if (JFile::exists($version_file)) {
require_once($version_file);
// abort if the current J2Store release is older
if (version_compare(J2STORE_VERSION, '3.99.99', 'ge')) {
if (($type == 'install') && version_compare(J2STORE_VERSION, '3.99.99', 'ge')) {
$app->enqueueMessage('You are using an latest version of J2Store. No need to migrate', 'warning');
return false;
}
Expand Down

0 comments on commit 0fbecbb

Please sign in to comment.