mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-12 06:52:12 +09:00
Fix #1289 allow batch-deletion of header and footer text
This commit is contained in:
parent
b6b06af336
commit
cc03f0ad1a
2 changed files with 12 additions and 5 deletions
|
|
@ -523,9 +523,13 @@ class moduleAdminController extends module
|
|||
$oModuleController= getController('module');
|
||||
$columnList = array('module_srl', 'module', 'menu_srl', 'site_srl', 'mid', 'browser_title', 'is_default', 'content', 'mcontent', 'open_rss', 'regdate');
|
||||
$updateList = array('module_category_srl','layout_srl','skin','mlayout_srl','mskin','description','header_text','footer_text', 'use_mobile');
|
||||
foreach($updateList as $key=>$val)
|
||||
foreach($updateList as $key => $val)
|
||||
{
|
||||
if(!strlen($vars->{$val}))
|
||||
if(isset($vars->{$val . '_delete'}) && $vars->{$val . '_delete'} === 'Y')
|
||||
{
|
||||
$vars->{$val} = '';
|
||||
}
|
||||
elseif(!strlen($vars->{$val}))
|
||||
{
|
||||
unset($updateList[$key]);
|
||||
$columnList[] = $val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue