mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#381 php 5.4 호환성문제 수정
This commit is contained in:
parent
f84ecb39ce
commit
7813cb00a3
6 changed files with 9 additions and 2 deletions
|
|
@ -98,8 +98,9 @@ class addonAdminModel extends addon
|
|||
// Add the path (files/addons precedence)
|
||||
$path = $this->getAddonPath($addon_name);
|
||||
// Wanted information on the add-on
|
||||
unset($info);
|
||||
$info = $this->getAddonInfoXml($addon_name, $site_srl, $gtype);
|
||||
|
||||
if(!$info) $info = new stdClass();
|
||||
|
||||
$info->addon = $addon_name;
|
||||
$info->path = $path;
|
||||
|
|
|
|||
|
|
@ -797,6 +797,7 @@ class documentAdminController extends document
|
|||
// If the post was not temorarily saved, set the attachment's status to be valid
|
||||
if($oDocument->hasUploadedFiles() && $originObject->member_srl != $originObject->module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $oDocument->document_srl;
|
||||
$args->isvalid = 'Y';
|
||||
$output = executeQuery('file.updateFileValid', $args);
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ class documentView extends document
|
|||
if(!$oMemberModel->isLogged()) return $this->stop('msg_not_logged');
|
||||
// Get the saved document (module_srl is set to member_srl instead)
|
||||
$logged_info = Context::get('logged_info');
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
$args->statusList = array($this->getConfigStatus('temp'));
|
||||
$args->page = (int)Context::get('page');
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ class fileAdminController extends file
|
|||
function procFileAdminInsertConfig()
|
||||
{
|
||||
// Get configurations (using module model object)
|
||||
$config = new stdClass();
|
||||
$config->allowed_filesize = Context::get('allowed_filesize');
|
||||
$config->allowed_attach_size = Context::get('allowed_attach_size');
|
||||
$config->allowed_filetypes = str_replace(' ', '', Context::get('allowed_filetypes'));
|
||||
|
|
|
|||
|
|
@ -337,6 +337,7 @@ class menuAdminController extends menu
|
|||
if(strncasecmp('http', $request->shortcut_target, 4) === 0 || preg_match('/^(\.\/|\.\.\/|\/).*$/', $request->shortcut_target))
|
||||
{
|
||||
// set menu variable
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $request->menu_srl;
|
||||
$args->parent_srl = $request->parent_srl;
|
||||
$args->open_window = $request->menu_open_window;
|
||||
|
|
@ -951,7 +952,7 @@ class menuAdminController extends menu
|
|||
{
|
||||
foreach($node AS $key=>$node)
|
||||
{
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menu_srl;
|
||||
$args->menu_item_srl = $node['node_srl'];
|
||||
$output = executeQuery('menu.updateMenuItemNode', $args);
|
||||
|
|
@ -1460,6 +1461,7 @@ class menuAdminController extends menu
|
|||
if(empty($url)) $url = getNotEncodedFullUrl('', 'module', 'admin');
|
||||
$dbInfo = Context::getDBInfo();
|
||||
|
||||
$args = new stdClass();
|
||||
$args->menu_item_srl = (!$requestArgs->menu_item_srl) ? getNextSequence() : $requestArgs->menu_item_srl;
|
||||
$args->parent_srl = $requestArgs->parent_srl;
|
||||
$args->menu_srl = $requestArgs->menu_srl;
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ class content extends WidgetHandler
|
|||
function _getCommentItems($args)
|
||||
{
|
||||
// List variables to use CommentModel::getCommentList()
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $args->module_srl;
|
||||
$obj->sort_index = $args->order_target;
|
||||
$obj->list_count = $args->list_count * $args->page_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue