diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-09-05 16:20:03 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-11-21 11:54:34 +0100 |
| commit | 0bc3ff052d47dd79bb672b82370875aa17e88bd0 (patch) | |
| tree | a249166788d75f8191d0b81bf6b04ec397cb92cc /app/controllers/admin/plugin.php | |
| parent | 2df8eadab53b07a0fed72e8b16b6cdc8d69b5c72 (diff) | |
activate vue page, remove php page
Diffstat (limited to 'app/controllers/admin/plugin.php')
| -rw-r--r-- | app/controllers/admin/plugin.php | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/app/controllers/admin/plugin.php b/app/controllers/admin/plugin.php index e11db43..12790d6 100644 --- a/app/controllers/admin/plugin.php +++ b/app/controllers/admin/plugin.php @@ -114,43 +114,7 @@ class Admin_PluginController extends AuthenticatedController * Display the list of installed plugins and show all available * updates (if any). */ - public function index_action() - { - // Check if an activation error has been flashed from the last request - if (isset($this->flash['activation-error'])) { - PageLayout::postError( - $this->get_template_factory()->render( - 'admin/plugin/activation-error-form.php', - $this->flash['activation-error'] + ['controller' => $this] - ) - ); - } - - $plugin_manager = PluginManager::getInstance(); - - $plugins = $plugin_manager->getPluginInfos($this->plugin_filter); - - if ($this->core_filter && $this->core_filter !== 'yes') { - $plugins = array_filter($plugins, function ($plugin) { - return ($this->core_filter === 'no' && !$plugin['core']) - || ($this->core_filter === 'only' && $plugin['core']); - }); - } - - $this->plugins = $plugins; - $this->plugin_types = $this->plugin_admin->getPluginTypes(); - $this->update_info = $this->get_update_info($this->plugins); - $this->migrations = $this->plugin_admin->getMigrationInfo(); - $this->num_updates = 0; - - foreach ($this->update_info as $id => $info) { - if (isset($info['update']) && !$this->plugins[$id]['depends']) { - $this->num_updates += 1; - } - } - } - - public function vue_action(): void + public function index_action(): void { // Check if an activation error has been flashed from the last request if (isset($this->flash['activation-error'])) { |
