mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fixed some weird behaviour with installation of plugins
This commit is contained in:
parent
83a51eebfb
commit
25ab4e187c
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.8.1 - x.x.x]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* Some weird behaviour with installation of plugins
|
||||||
|
|
||||||
## [0.8.0 - x.02.2020]
|
## [0.8.0 - x.02.2020]
|
||||||
|
|
||||||
### Added:
|
### Added:
|
||||||
|
@ -268,6 +268,12 @@ class Plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($continue) {
|
if($continue) {
|
||||||
|
if(!$zip->extractTo(BASE)) { // "Real" Install
|
||||||
|
self::$error = 'There was a problem with extracting zip archive to base directory.';
|
||||||
|
$zip->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($plugin_json['install'])) {
|
if (isset($plugin_json['install'])) {
|
||||||
if (file_exists(BASE . $plugin_json['install'])) {
|
if (file_exists(BASE . $plugin_json['install'])) {
|
||||||
$db->revalidateCache();
|
$db->revalidateCache();
|
||||||
@ -278,12 +284,6 @@ class Plugins {
|
|||||||
self::$warnings[] = 'Cannot load install script. Your plugin might be not working correctly.';
|
self::$warnings[] = 'Cannot load install script. Your plugin might be not working correctly.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$zip->extractTo(BASE)) { // "Real" Install
|
|
||||||
self::$error = 'There was a problem with extracting zip archive to base directory.';
|
|
||||||
$zip->close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$cache = Cache::getInstance();
|
$cache = Cache::getInstance();
|
||||||
if($cache->enabled()) {
|
if($cache->enabled()) {
|
||||||
$cache->delete('templates');
|
$cache->delete('templates');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user