diff --git a/alternative_plugins.php b/alternative_plugins.php index 7d8cc78..00cc94b 100644 --- a/alternative_plugins.php +++ b/alternative_plugins.php @@ -565,9 +565,6 @@ if ($zip->open(PATH . 'cache/' . $plugin_name . '.zip') === true) { if ($zip->extractTo(PATH . KLEEJA_PLUGINS_FOLDER)) { - // we dont need the zip file anymore - kleeja_unlink(PATH . 'cache/' . $plugin_name . '.zip'); - // uploaded plugin's archive has different name, so we change it rename( PATH . KLEEJA_PLUGINS_FOLDER . '/' . trim($zip->getNameIndex(0), '/'), @@ -576,6 +573,9 @@ $zip->close(); + // we dont need the zip file anymore + kleeja_unlink(PATH . 'cache/' . $plugin_name . '.zip'); + // download or update msg $adminAjaxContent = '1:::' . sprintf($lang[$is_update ? 'ITEM_UPDATED' : 'ITEM_DOWNLOADED'], $plugin_name); diff --git a/init.php b/init.php index b61e36c..ea0c644 100644 --- a/init.php +++ b/init.php @@ -1,7 +1,7 @@ 'Kleeja Team', // This plugin version - 'plugin_version' => '1.0', + 'plugin_version' => '1.1', // Explain what is this plugin, why should I use it? 'plugin_description' => [ 'en' => 'Alternative Store for kleeja',