aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/admin/plugin.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-05 16:20:03 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-11-21 11:54:34 +0100
commit0bc3ff052d47dd79bb672b82370875aa17e88bd0 (patch)
treea249166788d75f8191d0b81bf6b04ec397cb92cc /app/controllers/admin/plugin.php
parent2df8eadab53b07a0fed72e8b16b6cdc8d69b5c72 (diff)
activate vue page, remove php page
Diffstat (limited to 'app/controllers/admin/plugin.php')
-rw-r--r--app/controllers/admin/plugin.php38
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'])) {