Skip to content

Commit

Permalink
1.2.3
Browse files Browse the repository at this point in the history
Update : wrong extension name
  • Loading branch information
conseilgouz committed May 5, 2024
1 parent 68ff381 commit a81c083
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cgwebp.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<extension type="plugin" version="4.0" group="system" method="upgrade">
<name>System - CG Webp</name>
<creationDate>2024-04-29</creationDate>
<creationDate>2024-05-05</creationDate>
<author>ConseilGouz</author>
<copyright>Copyright (C) 2024 ConseilGouz. All rights reserved.</copyright>
<license>GNU/GPL</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>https://www.conseilgouz.com</authorUrl>
<version>1.2.2</version>
<version>1.2.3</version>
<description>PLG_SYSTEM_CGWEBP_DESCRIPTION</description>
<namespace path="src">Conseilgouz\Plugin\System\Cgwebp</namespace>
<scriptfile>script.cgwebp.php</scriptfile>
Expand Down Expand Up @@ -64,6 +64,6 @@
</config>
<changelogurl>https://raw.githubusercontent.com/conseilgouz/plg_system_cgwebp_j4/master/plg_system_cgwebp_changelog.xml</changelogurl>
<updateservers>
<server type="extension" name="cgchglog">https://raw.githubusercontent.com/conseilgouz/updates_github/master/plg_system_cgwebp_update.xml</server>
<server type="extension" name="cgwebp">https://raw.githubusercontent.com/conseilgouz/updates_github/master/plg_system_cgwebp_update.xml</server>
</updateservers>
</extension>
12 changes: 12 additions & 0 deletions plg_system_cgwebp_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
<changelogs>
<changelog>
<element>plg_system_cgwebp</element>
<type>plugin</type>
<group>system</group>
<version>1.2.3</version>
<note>
<item>Update : 05/05/2024</item>
</note>
<fix>
<item>Update : wrong extension name</item>
</fix>
</changelog>
<changelog>
<element>plg_system_cgwebp</element>
<type>plugin</type>
Expand Down
13 changes: 11 additions & 2 deletions script.cgwebp.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* @version 1.0.0
* @version 1.2.3
* @package CGWebp system plugin
* @author ConseilGouz
* @copyright Copyright (C) 2024 ConseilGouz. All rights reserved.
Expand Down Expand Up @@ -50,8 +50,17 @@ public function postflight($type, $parent)
$app = Factory::getApplication();
$app->enqueueMessage('CG Webp : Update params error', 'error');
return false;
}

}
}
// wrong extension name
$query = $db->getQuery(true)
->delete('#__update_sites')
->where($db->quoteName('location') . ' like '.$db->quote('%plg_system_cgwebp_update.xml%'))
->where($db->quoteNmae('name'). '='. $db->quote('cgchglog'));
$db->setQuery($query);
$result = $db->execute();

// Enable plugin
$query = $db->getQuery(true);
$db->setQuery('UPDATE #__extensions SET enabled = 1 WHERE extension_id = ' . $schema->extension_id);
Expand Down

0 comments on commit a81c083

Please sign in to comment.