From 560a9c7d4a69d27dd540e80684139f9877787d61 Mon Sep 17 00:00:00 2001 From: Zongjun Lan Date: Wed, 23 Mar 2022 09:11:27 +0800 Subject: [PATCH 1/2] * fix task #51317 --- module/index/js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/module/index/js/index.js b/module/index/js/index.js index 0e45e36856..1dcc343279 100644 --- a/module/index/js/index.js +++ b/module/index/js/index.js @@ -267,6 +267,7 @@ var $bar = $('#appBar-' + appCode); if(!$bar.length) { + if (typeof(app.text) == 'undefined') return false; var $link= $('') .attr('data-app', appCode) .attr('class', 'show-in-app') From b76661202c8e63b3be63bc85ee0d3c0a0ac36509 Mon Sep 17 00:00:00 2001 From: Zongjun Lan Date: Wed, 23 Mar 2022 13:49:20 +0800 Subject: [PATCH 2/2] remove code --- module/common/model.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index 5f6c449edc..8fb318c3ec 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -485,8 +485,6 @@ class commonModel extends model /* The standalone lite version removes the lite interface button */ if(trim($config->visions, ',') == 'lite') return true; - if($app->config->systemMode != 'new') return print("
{$lang->visionList['rnd']}
"); - if(count($userVisions) < 2) return print("
{$lang->visionList[$currentVision]}
"); if(count($configVisions) < 2) return print("
{$lang->visionList[$currentVision]}
");