diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 289ec24322..af5c0fe230 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -568,6 +568,8 @@ EOT; */ static public function exportConfigVars() { + if(!function_exists('json_encode')) return false; + global $app, $config, $lang; $defaultViewType = $app->getViewType(); $themeRoot = $app->getWebRoot() . 'theme/'; diff --git a/module/install/control.php b/module/install/control.php index 144962b1db..57ace64e4e 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -54,6 +54,7 @@ class install extends control $this->view->phpResult = $this->install->checkPHP(); $this->view->pdoResult = $this->install->checkPDO(); $this->view->pdoMySQLResult = $this->install->checkPDOMySQL(); + $this->view->jsonResult = $this->install->checkJSON(); $this->view->tmpRootInfo = $this->install->getTmpRoot(); $this->view->tmpRootResult = $this->install->checkTmpRoot(); $this->view->dataRootInfo = $this->install->getDataRoot(); diff --git a/module/install/lang/en.php b/module/install/lang/en.php index e7635f206d..c2a81c1512 100644 --- a/module/install/lang/en.php +++ b/module/install/lang/en.php @@ -58,6 +58,8 @@ $lang->install->pdo = 'PDO extension'; $lang->install->pdoFail = 'Edit the php.ini file to load PDO extsion.'; $lang->install->pdoMySQL = 'PDO_MySQL extension'; $lang->install->pdoMySQLFail = 'Edit the php.ini file to load PDO_MySQL extsion.'; +$lang->install->json = 'JSON extension'; +$lang->install->jsonFail = 'Edit the php.ini file to load JSON extension'; $lang->install->tmpRoot = 'Temp directory'; $lang->install->dataRoot = 'Upload directory.'; $lang->install->mkdir = '
Should creat the directory %s。
Under linux, can try
mkdir -p %s
需要创建目录%s。
linux下面命令为:
mkdir -p %s