WIP with option and result types

This commit is contained in:
2024-06-25 18:37:00 -04:00
parent dfd9a873f8
commit 1d5a3c1c7a
16 changed files with 302 additions and 136 deletions

View File

@@ -14,10 +14,10 @@ FeedReaderCentral\Security::verifyUser();
if (key_exists('refresh', $_GET)) {
$refreshResult = Feed::refreshAll();
if (key_exists('ok', $refreshResult)) {
if ($refreshResult->success()->isDefined()) {
add_info('All feeds refreshed successfully');
} else {
add_error(nl2br($refreshResult['error']));
add_error(nl2br($refreshResult->error()->get()));
}
}