Bugfix: plugin package incorrect

This commit is contained in:
the-djmaze 2022-05-20 08:48:35 +02:00
parent 3ab1725bb6
commit 3508adb5ef
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ foreach (glob(ROOT_DIR . '/plugins/*', GLOB_NOSORT | GLOB_ONLYDIR) as $dir) {
@unlink($tgz_destination);
@unlink("{$tar_destination}.gz");
$tar = new PharData($tar_destination);
$tar->buildFromDirectory('./plugins/', '/' . \preg_quote("./plugins/{$name}", '/') . '/');
$tar->buildFromDirectory('./plugins/', '/' . \preg_quote("./plugins/{$name}/", '/') . '/');
$tar->compress(Phar::GZ);
unlink($tar_destination);
rename("{$tar_destination}.gz", $tgz_destination);

View file

@ -6,8 +6,8 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Change Password',
VERSION = '2.14',
RELEASE = '2022-04-28',
VERSION = '2.16',
RELEASE = '2022-05-20',
REQUIRED = '2.12.0',
CATEGORY = 'Security',
DESCRIPTION = 'Extension to allow users to change their passwords';