Merge pull request #379 from aneasystone/master

修复两个在SAE本地环境出现的bug
This commit is contained in:
joyqi 2015-06-27 22:18:37 +08:00
commit 3d4b7babb4
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<?php
$engine = '';
if (defined('SAE_MYSQL_DB')) {
if (defined('SAE_MYSQL_DB') && SAE_MYSQL_DB != "app_") {
$engine = 'SAE';
} else if (!!getenv('HTTP_BAE_ENV_ADDR_SQL_IP')) {
$engine = 'BAE';

View File

@ -9,7 +9,7 @@
* @version $Id$
*/
define('__TYPECHO_MB_SUPPORTED__', function_exists('mb_get_info'));
define('__TYPECHO_MB_SUPPORTED__', function_exists('mb_get_info') && function_exists('mb_regex_encoding'));
/**
* Typecho公用方法