From 3449f978a50f031129ef16ad34435a35619280a1 Mon Sep 17 00:00:00 2001 From: Mafoo Date: Sat, 3 Jun 2017 16:15:41 +0100 Subject: [PATCH] Enhance - Display application descriptions in native (#2629) Where application description is availible in the session language, display it, if not fall back to en-us then   --- core/apps/apps.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/apps/apps.php b/core/apps/apps.php index e35f43e6cf..a4e23202b2 100644 --- a/core/apps/apps.php +++ b/core/apps/apps.php @@ -102,7 +102,12 @@ require_once "resources/paging.php"; echo " ".$row['category']." \n"; echo " ".$row['subcategory']." \n"; echo " ".$row['version']." \n"; - echo " ".$row['description']['en-us']." \n"; + $description = $row['description'][$_SESSION['domain']['language']['code']]; + if(strlen($description) == 0) + $description = $row['description']['en-us']; + if(strlen($description) == 0) + $description = ' ' + echo " $description\n"; /* // temporarily disabled echo " "; if (permission_exists('app_edit')) {