mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
About Page: Suppress the MigrationManager
exception
This commit is contained in:
parent
2864e60d78
commit
9f14c32b71
@ -96,7 +96,15 @@ use ipl\Web\Widget\StateBadge;
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php $mm = MigrationManager::instance(); if ($mm->hasPendingMigrations()): ?>
|
<?php
|
||||||
|
$mm = MigrationManager::instance();
|
||||||
|
$hasPending = false;
|
||||||
|
try {
|
||||||
|
$hasPending = $mm->hasPendingMigrations();
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
// suppress
|
||||||
|
}
|
||||||
|
if ($hasPending): ?>
|
||||||
<div class="pending-migrations clearfix">
|
<div class="pending-migrations clearfix">
|
||||||
<h2><?= $this->translate('Pending Migrations') ?></h2>
|
<h2><?= $this->translate('Pending Migrations') ?></h2>
|
||||||
<table class="name-value-table migrations">
|
<table class="name-value-table migrations">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user