Menüleiste am Handy, Updater in zwei Schritten, Absturzerkennung ohne Merkdateien (0.62.0)
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 11m34s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 12m8s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 15m14s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 15m47s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m48s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 14m15s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 16m38s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 17m2s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m16s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m53s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-10-07 17:03:05 +00:00
parent 623d423ad8
commit c275db4dce
147 changed files with 760 additions and 498 deletions

View file

@ -27,12 +27,29 @@ class PluginState
{
$entry = $this->all()[$manifest->slug] ?? null;
return is_array($entry) ? (bool) ($entry['enabled'] ?? false) : $manifest->core && ($manifest->enabledByDefault || self::$enableOptionalCorePlugins);
// Ein Eintrag kann auch nur einen vermerkten Absturz enthalten – dann gilt die Voreinstellung
return is_array($entry) && array_key_exists('enabled', $entry)
? (bool) $entry['enabled']
: $manifest->core && ($manifest->enabledByDefault || self::$enableOptionalCorePlugins);
}
public function setEnabled(string $slug, bool $enabled, ?string $reason = null): void
{
$this->update($slug, ['enabled' => $enabled, 'disabled_reason' => $enabled ? null : $reason, 'disabled_at' => $enabled ? null : time()]);
$this->update($slug, ['enabled' => $enabled, 'disabled_reason' => $enabled ? null : $reason, 'disabled_at' => $enabled ? null : time(), 'crashed_at' => null]);
}
/** Letzter Absturz beim Laden, der das Plugin noch nicht abgeschaltet hat (Unix-Zeit) */
public function crashedAt(string $slug): ?int
{
$this->data = null; // frisch lesen – eine parallele Anfrage kann ihn eben vermerkt haben
$at = $this->all()[$slug]['crashed_at'] ?? null;
return is_int($at) ? $at : null;
}
public function recordCrash(string $slug): void
{
$this->update($slug, ['crashed_at' => time()]);
}
/** Zeitpunkt der Deaktivierung (Unix-Zeit), falls bekannt */