mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
Issue 2380: Admin UI Refactoring - Advanced - Layouts
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11610 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2d4b235146
commit
b8eb83cd94
16 changed files with 219 additions and 1313 deletions
|
|
@ -229,9 +229,19 @@
|
|||
* @param int $layout_srl
|
||||
* @return Object
|
||||
**/
|
||||
function deleteLayout($layout_srl) {
|
||||
function deleteLayout($layout_srl, $force = FALSE) {
|
||||
$oLayoutModel = &getModel('layout');
|
||||
|
||||
if(!$force)
|
||||
{
|
||||
$layoutInfo = $oLayoutModel->getLayout($layout_srl);
|
||||
$layoutList = $oLayoutModel->getLayoutInstanceList($layoutInfo->site_srl, $layoutInfo->layout_type, $layoutInfo->layout, array('layout_srl'));
|
||||
if(count($layoutList) <= 1)
|
||||
{
|
||||
return new Object(-1, 'msg_at_least_one_layout');
|
||||
}
|
||||
}
|
||||
|
||||
$path = $oLayoutModel->getUserLayoutPath($layout_srl);
|
||||
FileHandler::removeDir($path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue