NOISSUE PHP 버전 호환성 개선

This commit is contained in:
khongchi 2013-12-19 20:58:09 +09:00
parent e49c7265ff
commit c5c69bba4e

View file

@ -49,10 +49,10 @@ class mcontent 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)
@ -170,6 +170,7 @@ class mcontent extends WidgetHandler
function _getCommentItems($args)
{
// CommentModel:: getCommentList() to take advantage of the variable order
$obj = new stdClass();
$obj->module_srl = $args->module_srl;
$obj->sort_index = $args->order_target;
$obj->list_count = $args->list_count;
@ -270,6 +271,7 @@ class mcontent extends WidgetHandler
{
$oDocumentModel = &getModel('document');
$obj = new stdClass();
$obj->module_srls = $obj->module_srl = $args->module_srl;
$obj->direct_download = 'Y';
$obj->isvalid = 'Y';
@ -420,6 +422,7 @@ class mcontent extends WidgetHandler
$oXmlParser = new XmlParser();
$xml_doc = $oXmlParser->parse($buff);
$rss = new stdClass();
if($xml_doc->rss)
{
$rss->title = $xml_doc->rss->channel->title->body;
@ -436,6 +439,7 @@ class mcontent extends WidgetHandler
{
if($key >= $args->list_count) break;
unset($item);
$item = new stdClass();
foreach($value as $key2 => $value2)
{
@ -474,6 +478,7 @@ class mcontent extends WidgetHandler
{
if($key >= $args->list_count) break;
unset($item);
$item = new stdClass();
foreach($value as $key2 => $value2)
{
@ -495,7 +500,8 @@ class mcontent extends WidgetHandler
$content_items[] = $content_item;
}
}
else if($xml_doc->feed && $xml_doc->feed->attrs->xmlns == 'http://www.w3.org/2005/Atom') {
else if($xml_doc->feed && $xml_doc->feed->attrs->xmlns == 'http://www.w3.org/2005/Atom')
{
// Atom 1.0 spec supported by misol
$rss->title = $xml_doc->feed->title->body;
$links = $xml_doc->feed->link;