mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Remove 'set as homepage' link from menu configuration screen
This commit is contained in:
parent
af11056fae
commit
0432e20dfc
4 changed files with 24 additions and 67 deletions
|
|
@ -44,40 +44,6 @@ class installAdminController extends install
|
|||
return $output;
|
||||
}
|
||||
|
||||
function procInstallAdminUpdateIndexModule()
|
||||
{
|
||||
if(!Context::get('index_module_srl') || !Context::get('menu_item_srl'))
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$site_args = new stdClass();
|
||||
$site_args->site_srl = 0;
|
||||
$site_args->index_module_srl = Context::get('index_module_srl');
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->updateSite($site_args);
|
||||
|
||||
// get menu item info
|
||||
$menuItemSrl = Context::get('menu_item_srl');
|
||||
$oMenuAdminModel = getAdminModel('menu');
|
||||
$output = $oMenuAdminModel->getMenuItemInfo($menuItemSrl);
|
||||
|
||||
// update homeSitemap.php cache file
|
||||
$oMenuAdminController = getAdminController('menu');
|
||||
$homeMenuCacheFile = $oMenuAdminController->getHomeMenuCacheFile();
|
||||
if(file_exists($homeMenuCacheFile))
|
||||
{
|
||||
include($homeMenuCacheFile);
|
||||
}
|
||||
|
||||
if(!$homeMenuSrl || $homeMenuSrl != $output->menu_srl)
|
||||
{
|
||||
$oMenuAdminController->makeHomemenuCacheFile($output->menu_srl);
|
||||
}
|
||||
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
|
||||
function procInstallAdminRemoveFTPInfo()
|
||||
{
|
||||
$ftp_config_file = Context::getFTPConfigFile();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue