From 1da82abb95040fa92ec8275c112b470aa5baf67a Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Tue, 20 Apr 2021 19:11:38 +0800
Subject: [PATCH] fix: can not edit disk when disktag is 'home'
---
common.php | 32 +++++++++++++++++---------------
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/common.php b/common.php
index 18e3371..186cf6a 100644
--- a/common.php
+++ b/common.php
@@ -1221,7 +1221,7 @@ function EnvOpt($needUpdate = 0)
$html .= '
' . getconstStr('Back') . '
';
- if (isset($_GET['frame'])&&$_GET['frame']=='platform') {
+ if ($_GET['setup']==='platform') {
$frame .= '
' . getconstStr('Home') . ' | '; - else $html .= ' -' . getconstStr('Home') . ' | '; - if ($_GET['frame']=='platform') $html .= ' -' . getconstStr('PlatformConfig') . ' | '; - else $html .= ' -' . getconstStr('PlatformConfig') . ' | '; + if ($_GET['disktag']=='') { + if ($_GET['setup']==='platform') $html .= ' +' . getconstStr('Home') . ' | +' . getconstStr('PlatformConfig') . ' | '; + else $html .= ' +' . getconstStr('Home') . ' | +' . getconstStr('PlatformConfig') . ' | '; + } else $html .= ' +' . getconstStr('Home') . ' | +' . getconstStr('PlatformConfig') . ' | '; foreach ($disktags as $disktag) { if ($disktag!='') { - if ($_GET['frame']==$disktag) $html .= ' -' . $disktag . ' | '; + if ($_GET['disktag']==$disktag) $html .= ' +' . $disktag . ' | '; else $html .= ' -' . $disktag . ' | '; +' . $disktag . ' | '; } } $html .= '