NOISSUE PHP 버전 호환성 개선

This commit is contained in:
khongchi 2013-12-17 20:51:00 +09:00
parent dc41e3c4a3
commit efa5ec4c0c
6 changed files with 9 additions and 6 deletions

View file

@ -2230,7 +2230,7 @@ class documentController extends document
if(preg_match('/^([0-9,]+)$/',$module_srl)) $module_srl = explode(',',$module_srl);
else $module_srl = array($module_srl);
$document_config = null;
$document_config = new stdClass();
$document_config->use_history = Context::get('use_history');
if(!$document_config->use_history) $document_config->use_history = 'N';

View file

@ -913,7 +913,8 @@ class documentModel extends document
{
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('document');
if(!$config) $config = new stdClass;
if(!$config) $config = new stdClass();
if(!$config->thumbnail_type) $config->thumbnail_type = 'crop';
$GLOBALS['__document_config__'] = $config;
}

View file

@ -240,6 +240,7 @@ class installController extends install
if(!$ftp_info->ftp_root_path) $ftp_info->ftp_root_path = '/';
$buff = array('<?php if(!defined("__XE__")) exit();');
$buff[] = "\$ftp_info = new stdClass();";
foreach($ftp_info as $key => $val)
{
$buff[] = sprintf("\$ftp_info->%s='%s';", $key, str_replace("'","\\'",$val));

View file

@ -815,7 +815,7 @@ class memberModel extends member
if(file_exists($image_name_file))
{
list($width, $height, $type, $attrs) = getimagesize($image_name_file);
$info = null;
$info = new stdClass();
$info->width = $width;
$info->height = $height;
$info->src = Context::getRequestUri().$image_name_file;

View file

@ -641,11 +641,13 @@ class moduleModel extends module
$xml_obj = $tmp_xml_obj->module;
if(!$xml_obj) return;
// Module Information
$module_info = new stdClass();
$author_obj = new stdClass();
if($xml_obj->version && $xml_obj->attrs->version == '0.2')
{
// module format 0.2
$module_info = new stdClass();
$module_info->title = $xml_obj->title->body;
$module_info->description = $xml_obj->description->body;
$module_info->version = $xml_obj->version->body;
@ -662,7 +664,6 @@ class moduleModel extends module
foreach($author_list as $author)
{
$author_obj = new stdClass();
$author_obj->name = $author->name->body;
$author_obj->email_address = $author->attrs->email_address;
$author_obj->homepage = $author->attrs->link;

View file

@ -63,10 +63,10 @@ class content extends WidgetHandler
}
else
{
$obj = new stdClass();
// Apply to all modules in the site if a target module is not specified
if(!$args->module_srls)
{
$obj = new stdClass();
$obj->site_srl = (int)$site_module_info->site_srl;
$output = executeQueryArray('widgets.content.getMids', $obj);
if($output->data)