mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
issue 841, proc changed to procAddonAdminSaveActive in cafeXE
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9793 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
59c9362808
commit
062f4b9cc9
1 changed files with 9 additions and 4 deletions
|
|
@ -23,6 +23,11 @@
|
||||||
$pc = Context::get('pc');
|
$pc = Context::get('pc');
|
||||||
$mobile = Context::get('mobile');
|
$mobile = Context::get('mobile');
|
||||||
$fixed = Context::get('fixed');
|
$fixed = Context::get('fixed');
|
||||||
|
|
||||||
|
$site_module_info = Context::get('site_module_info');
|
||||||
|
|
||||||
|
if($site_module_info->site_srl) $site_srl = $site_module_info->site_srl;
|
||||||
|
else $site_srl = 0;
|
||||||
|
|
||||||
if (!$pc) $pc = array();
|
if (!$pc) $pc = array();
|
||||||
if (!$mobile) $mobile = array();
|
if (!$mobile) $mobile = array();
|
||||||
|
|
@ -34,7 +39,7 @@
|
||||||
|
|
||||||
// get current addon info
|
// get current addon info
|
||||||
$oModel = &getAdminModel('addon');
|
$oModel = &getAdminModel('addon');
|
||||||
$currentAddonList = $oModel->getAddonList(0, 'site');
|
$currentAddonList = $oModel->getAddonList($site_srl, 'site');
|
||||||
|
|
||||||
// get need update addon list
|
// get need update addon list
|
||||||
$updateList = array();
|
$updateList = array();
|
||||||
|
|
@ -80,7 +85,7 @@
|
||||||
$args->fixed = 'N';
|
$args->fixed = 'N';
|
||||||
|
|
||||||
$args->addon = $targetAddon;
|
$args->addon = $targetAddon;
|
||||||
$args->site_srl = 0;
|
$args->site_srl = $site_srl;
|
||||||
|
|
||||||
$output = executeQuery('addon.updateSiteAddon', $args);
|
$output = executeQuery('addon.updateSiteAddon', $args);
|
||||||
if (!$output->toBool()) return $output;
|
if (!$output->toBool()) return $output;
|
||||||
|
|
@ -88,8 +93,8 @@
|
||||||
|
|
||||||
if (count($updateList))
|
if (count($updateList))
|
||||||
{
|
{
|
||||||
$this->makeCacheFile(0, 'pc', 'site');
|
$this->makeCacheFile($site_srl, 'pc', 'site');
|
||||||
$this->makeCacheFile(0, 'mobile', 'site');
|
$this->makeCacheFile($site_srl, 'mobile', 'site');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Context::get('success_return_url'))
|
if (Context::get('success_return_url'))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue