Merge branch 'develop' of github.com:xpressengine/xe-core into develop

This commit is contained in:
bnu 2015-12-08 17:23:01 +09:00
commit c4ea86bd05
4 changed files with 5 additions and 9 deletions

View file

@ -202,6 +202,7 @@ class Context
{
if(!isset($GLOBALS['HTTP_RAW_POST_DATA']) && version_compare(PHP_VERSION, '5.6.0', '>=') === true) {
if(simplexml_load_string(file_get_contents("php://input")) !== false) $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
if(strpos($_SERVER['CONTENT_TYPE'], 'json') || strpos($_SERVER['HTTP_CONTENT_TYPE'], 'json')) $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
}
// set context variables in $GLOBALS (to use in display handler)

View file

@ -1,11 +1,6 @@
<?php
/* Copyright (C) NAVER <http://www.navercorp.com> */
if(!defined('__XE_LOADED_DB_CLASS__'))
{
define('__XE_LOADED_DB_CLASS__', 1);
}
/**
* - DB parent class
* - usage of db in XE is via xml

View file

@ -501,7 +501,7 @@ class adminAdminController extends admin
$vars = Context::getRequestVars();
$oInstallController = getController('install');
$db_info = Context::getDbInfo();
$db_info = Context::getDBInfo();
$db_info->use_sitelock = ($vars->use_sitelock) ? $vars->use_sitelock : 'N';
$db_info->sitelock_title = $vars->sitelock_title;
@ -543,7 +543,7 @@ class adminAdminController extends admin
{
$vars = Context::getRequestVars();
$db_info = Context::getDbInfo();
$db_info = Context::getDBInfo();
$white_object = $vars->embed_white_object;
$white_object = preg_replace("/[\r\n|\r|\n]+/", '|@|', $white_object);

View file

@ -600,7 +600,7 @@ class installController extends install
{
$db_tmp_config_file = $this->db_tmp_config_file;
$db_info = Context::getDbInfo();
$db_info = Context::getDBInfo();
if(!$db_info) return;
$buff = $this->_getDBConfigFileContents($db_info);
@ -641,7 +641,7 @@ class installController extends install
$config_file = Context::getConfigFile();
//if(file_exists($config_file)) return;
$db_info = Context::getDbInfo();
$db_info = Context::getDBInfo();
if(!$db_info) return;
$buff = $this->_getDBConfigFileContents($db_info);