From 77f183817ab789f16a7398e1db6c6d15b78fc5ac Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 25 Jan 2025 02:48:52 -0800 Subject: [PATCH] Replace try/catch callback w/ simplified JSON parsing --- includes/system.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/includes/system.php b/includes/system.php index 7167cbd1..6ef6b74e 100755 --- a/includes/system.php +++ b/includes/system.php @@ -117,20 +117,8 @@ function DisplaySystem(&$extraFooterScripts) $extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false); $logLimit = isset($_SESSION['log_limit']) ? $_SESSION['log_limit'] : RASPI_LOG_SIZE_LIMIT; - try { - $plugins = callbackTimeout(fn() => $pluginInstaller->getUserPlugins(), 3000); - $pluginsTable = $pluginInstaller->getHTMLPluginsTable($plugins); - } catch (\Exception $e) { - $errResponse = sprintf( - '
%s: %s. %s %s.
', - _('Network error'), - _('Unable to load plugins'), - _('Reload'), - _('and try again') - ); - $errResponse.= '