Oops I broke things again²

This commit is contained in:
Alexandre Aubin 2022-08-06 18:02:10 +02:00
parent 48199f2024
commit 60cf3bb703

View file

@ -9,8 +9,8 @@ if (!file_exists("locales/".$user_locale.".json")) { $user_locale = 'en'; }
$locale=json_decode(file_get_contents("locales/".$user_locale.".json"), true); $locale=json_decode(file_get_contents("locales/".$user_locale.".json"), true);
// Parse the apps list // Parse the apps list
$apps_list_json=file_get_contents("https://app.yunohost.org/default/v2/apps.json"); $apps_list_json=file_get_contents("http://app.yunohost.org/default/v2/apps.json");
$apps_list=json_decode($apps_list_json, true); $apps_list=json_decode($apps_list_json, true)["apps"];
// Check if the app is the apps list // Check if the app is the apps list
if(array_key_exists($app, $apps_list)) { if(array_key_exists($app, $apps_list)) {