Add a switch for xmlrpc in general control panel.

This commit is contained in:
joyqi
2017-10-27 16:42:13 +08:00
parent ef4ee2f9b0
commit ed0af49767
8 changed files with 50 additions and 13 deletions
+5
View File
@@ -26,6 +26,11 @@ class Widget_Init extends Typecho_Widget
/** 对变量赋值 */
$options = $this->widget('Widget_Options');
/** 检查安装状态 */
if (!$options->installed) {
$this->update(array('value' => 1), $this->db->sql()->where('name = ?', 'installed'));
}
/** 语言包初始化 */
if ($options->lang && $options->lang != 'zh_CN') {
$dir = defined('__TYPECHO_LANG_DIR__') ? __TYPECHO_LANG_DIR__ : __TYPECHO_ROOT_DIR__ . '/usr/langs';