Fix: Typecho Settings Issue (#30)

修复 Typecho 1.2.1 保存设置后不勾选问题
This commit is contained in:
jrotty 2023-06-19 22:14:27 +08:00 committed by GitHub
parent 0efc8904ba
commit 828becc3f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ class Pio_Plugin implements Typecho_Plugin_Interface{
};
// 选择模型
$choose_models = new Typecho_Widget_Helper_Form_Element_Checkbox('choose_models', $models, 'pio', _t('选择模型'), _t('选择插件 Models 目录下的模型,每个模型为一个文件夹,并确定配置文件名为 <a>model.json</a>'));
$choose_models = new Typecho_Widget_Helper_Form_Element_Checkbox('choose_models', $models, ['pio'], _t('选择模型'), _t('选择插件 Models 目录下的模型,每个模型为一个文件夹,并确定配置文件名为 <a>model.json</a>'));
$form -> addInput($choose_models);
// 选择外链模型
@ -181,4 +181,4 @@ class Pio_Plugin implements Typecho_Plugin_Interface{
echo "<script src='" . Helper::options() -> pluginUrl . "/Pio/static/pio.js'></script>" . "\n";
echo $loader;
}
}
}