From ac7e43d100a01d1bd19f7a8f54cb347315f37a5f Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Fri, 19 Feb 2021 05:53:31 -0500 Subject: [PATCH] update --- plugins/community.applications.plg | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/plugins/community.applications.plg b/plugins/community.applications.plg index 4a2d5d8d..0828b03b 100644 --- a/plugins/community.applications.plg +++ b/plugins/community.applications.plg @@ -2,8 +2,8 @@ - - + + @@ -13,6 +13,11 @@ +###2021.02.19 +- Fixed: Certain apps previously pinned would not appear within pinned apps +- Patched: Sort order in Installed / Previous Apps section +- Fixed: Deleting a private app from within pinned apps would return an error + ###2021.02.15 - Switch to a floating popup for app / repository information - Remove Excess Files @@ -1562,6 +1567,18 @@ THIS IS A REQUIRED UPDATE exec("rm -rf /tmp/ca_notices"); + echo "Fixing pinned apps\n"; + if ( is_file("/boot/config/plugins/community.applications/pinned_appsV2.json") ) { + $original = json_decode(file_get_contents("/boot/config/plugins/community.applications/pinned_appsV2.json"),true); + if ( is_array($original) ) { + foreach ($original as $app) { + $amp = strpos($app,"&"); + $new = substr($app,0,$amp).str_replace("-"," ",substr($app,$amp)); + $pin[$new]=$new; + } + } + file_put_contents("/boot/config/plugins/community.applications/pinned_appsV2.json",json_encode($pin,JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT)); + } echo "Setting up cron for background notifications\n"; $cron = rand(0,59)." * * * * php /usr/local/emhttp/plugins/community.applications/scripts/notices.php > /dev/null 2>&1";