mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 2524 button upload bug fix
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11819 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
95ff843a6a
commit
35c725f353
1 changed files with 13 additions and 9 deletions
|
|
@ -479,10 +479,12 @@
|
|||
public function procMenuAdminButtonUpload()
|
||||
{
|
||||
$args = Context::getRequestVars();
|
||||
$btnOutput = $this->_uploadButton($args);
|
||||
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$item_info = $oMenuAdminModel->getMenuItemInfo($args->menu_item_srl);
|
||||
$args->menu_srl = $item_info->menu_srl;
|
||||
|
||||
$btnOutput = $this->_uploadButton($args);
|
||||
|
||||
if($btnOutput['normal_btn'])
|
||||
{
|
||||
|
|
@ -500,13 +502,13 @@
|
|||
$item_info->active_btn = $btnOutput['active_btn'];
|
||||
}
|
||||
|
||||
// group_srls check
|
||||
if(count($item_info->group_srls) == 0)
|
||||
{
|
||||
unset($item_info->group_srls);
|
||||
}
|
||||
|
||||
$output = executeQuery('menu.updateMenuItem', $item_info);
|
||||
|
||||
$oJsonHandler = new JSONDisplayHandler();
|
||||
$resultJson = $oJsonHandler->toDoc($this);
|
||||
|
||||
Context::set('resultJson', $resultJson);
|
||||
$this->setTemplateFile('callback');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1555,8 +1557,10 @@
|
|||
{
|
||||
// path setting
|
||||
$path = sprintf('./files/attach/menu_button/%d/', $args->menu_srl);
|
||||
if($args->menu_normal_btn || $args->menu_hover_btn || $args->menu_active_btn)
|
||||
if(!is_dir($path)) FileHandler::makeDir($path);
|
||||
if($args->menu_normal_btn || $args->menu_hover_btn || $args->menu_active_btn && !is_dir($path))
|
||||
{
|
||||
FileHandler::makeDir($path);
|
||||
}
|
||||
|
||||
if($args->isNormalDelete == 'Y' || $args->isHoverDelete == 'Y' || $args->isActiveDelete == 'Y')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue