diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2023-07-13 13:14:56 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2023-07-13 13:14:56 +0000 |
| commit | 74603117e50e764dfb0233d49cb99ffafaccac54 (patch) | |
| tree | 6dda9ee2c02a06a275d76aa05619eb6402176f18 /lib/plugins/engine/PluginManager.class.php | |
| parent | 578284e2ee4d8c8f2901b26abcb3efd440b9ad7f (diff) | |
Resolve "Restrukturierung der Veranstaltungsverwaltung inklusive Mehr-Seite"
Closes #2440
Merge request studip/studip!1695
Diffstat (limited to 'lib/plugins/engine/PluginManager.class.php')
| -rw-r--r-- | lib/plugins/engine/PluginManager.class.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/plugins/engine/PluginManager.class.php b/lib/plugins/engine/PluginManager.class.php index 86305a1..7fb69bc 100644 --- a/lib/plugins/engine/PluginManager.class.php +++ b/lib/plugins/engine/PluginManager.class.php @@ -85,7 +85,11 @@ class PluginManager 'depends' => (int) $plugin['dependentonid'], 'core' => $plugin['pluginpath'] === '', 'automatic_update_url' => $plugin['automatic_update_url'], - 'automatic_update_secret' => $plugin['automatic_update_secret'] + 'automatic_update_secret' => $plugin['automatic_update_secret'], + 'description' => $plugin['description'], + 'description_mode' => $plugin['description_mode'], + 'highlight_until' => $plugin['highlight_until'], + 'highlight_text' => $plugin['highlight_text'] ]; } } @@ -251,11 +255,16 @@ class PluginManager $activation->range_type = $range->getRangeType(); } $plugin = $this->getPluginById($id); + if ($active) { call_user_func([get_class($plugin), 'onActivation'], $id, $rangeId); + StudipLog::log('PLUGIN_ENABLE', $rangeId, $id, User::findCurrent()->id); + NotificationCenter::postNotification('PluginDidActivate', $rangeId, $id); return $activation->store(); } else { call_user_func([get_class($plugin), 'onDeactivation'], $id, $rangeId); + StudipLog::log('PLUGIN_DISABLE', $rangeId, $id, User::findCurrent()->id); + NotificationCenter::postNotification('PluginDidDeactivate', $rangeId, $id); return $activation->delete(); } } |
