mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
This commit is contained in:
@@ -275,13 +275,16 @@ function plugins_sync() {
|
||||
if(! array_walk($plugins_arr,'array_trim'))
|
||||
return;
|
||||
|
||||
App::$plugins = $plugins_arr;
|
||||
|
||||
$installed_arr = [];
|
||||
|
||||
if(count($installed)) {
|
||||
foreach($installed as $i) {
|
||||
if(! in_array($i, $plugins_arr)) {
|
||||
if (! file_exists('addon/' . $i . '/' . $i . '.php')) {
|
||||
q("DELETE FROM addon WHERE aname = '%s' ",
|
||||
dbesc($i)
|
||||
);
|
||||
}
|
||||
elseif(! in_array($i, $plugins_arr)) {
|
||||
unload_plugin($i);
|
||||
}
|
||||
else {
|
||||
@@ -298,6 +301,8 @@ function plugins_sync() {
|
||||
}
|
||||
}
|
||||
|
||||
App::$plugins = $installed_arr;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user