aboutsummaryrefslogtreecommitdiff
path: root/lib/seminar_open.php
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2023-08-18 09:59:48 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-08-18 09:59:48 +0000
commit75cedc6df4797f2e2f90f06222ec5e5018fc0826 (patch)
tree4384ee0e9b0fc7a66f7feae544a472cb607971cc /lib/seminar_open.php
parent3bee81d9cb87eda39843435a8ceea40454154731 (diff)
add a new API to count pending migrations, fixes #3069
Closes #3069 and #3022 Merge request studip/studip!2046
Diffstat (limited to 'lib/seminar_open.php')
-rw-r--r--lib/seminar_open.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/seminar_open.php b/lib/seminar_open.php
index 33436d4..e79d39c 100644
--- a/lib/seminar_open.php
+++ b/lib/seminar_open.php
@@ -161,12 +161,10 @@ if (!Request::isXhr() && $perm->have_perm('root')) {
new DBSchemaVersion('studip')
);
- $migrations = $migrator->relevantMigrations(null);
-
$_SESSION['migration-check'] = [
'disabled' => $_SESSION['migration-check']['disabled'] ?? false,
'timestamp' => time(),
- 'count' => count($migrations),
+ 'count' => $migrator->pendingMigrations()
];
}