diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-04-01 16:45:36 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-04-01 16:45:36 +0800 |
| commit | e5ed80ec7584d481dc869bc9dd9e10b6895ddc69 (patch) | |
| tree | bc14c5dfb615a3c23760c4fa0c5dbc8f75641874 /libs/Options.php | |
| parent | be512a764bdf9b68f1e93bb32414a5a6715c2a01 (diff) | |
:scissors: Fix: 修复后台设置备份无法使用 #45
Diffstat (limited to 'libs/Options.php')
| -rwxr-xr-x | libs/Options.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/Options.php b/libs/Options.php index 3780278..b74fb86 100755 --- a/libs/Options.php +++ b/libs/Options.php @@ -12,7 +12,7 @@ function themeConfig($form) { $sjdq=$db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:Miracles'));
$ysj = $sjdq['value'];
if(isset($_POST['type'])){
- if($_POST["type"]=="备份模板数据"){
+ if($_POST["type"]=="备份设置"){
if($db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:MiraclesBackup'))){
$update = $db->update('table.options')->rows(array('value'=>$ysj))->where('name = ?', 'theme:MiraclesBackup');
$updateRows= $db->query($update);
@@ -28,7 +28,7 @@ function themeConfig($form) { }
}
}
- if($_POST["type"]=="还原模板数据"){
+ if($_POST["type"]=="还原设置"){
if($db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:MiraclesBackup'))){
$sjdub=$db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:MiraclesBackup'));
$bsj = $sjdub['value'];
@@ -41,7 +41,7 @@ function themeConfig($form) { echo '<div class="miracles-backup-alert">没有模板备份数据,恢复不了哦!</div>';
}
}
- if($_POST["type"]=="删除备份数据"){
+ if($_POST["type"]=="删除设置备份"){
if($db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:MiraclesBackup'))){
$delete = $db->delete('table.options')->where ('name = ?', 'theme:MiraclesBackup');
$deletedRows = $db->query($delete);
|
