1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

AdminerEditCalendar: Avoid work in constructor

This commit is contained in:
Jakub Vrana
2025-03-23 18:41:09 +01:00
parent 6a64c7771b
commit 4477f95426
2 changed files with 7 additions and 10 deletions

View File

@@ -48,8 +48,7 @@ if (
echo "<p>" . lang('Loaded plugins') . ":\n<ul>\n";
foreach ($adminer->plugins as $plugin) {
$reflection = new \ReflectionObject($plugin);
preg_match('~^/[\s*]+(.+)\n~', $reflection->getDocComment(), $match);
echo "<li><b>" . get_class($plugin) . "</b>" . h($match ? ": $match[1]" : "") . "\n";
echo "<li><b>" . get_class($plugin) . "</b>" . h(preg_match('~^/[\s*]+(.+)~', $reflection->getDocComment(), $match) ? ": $match[1]" : "") . "\n";
}
echo "</ul>\n";
}