* remove custom-ajaxsethomepage page.

This commit is contained in:
wangyidong
2018-05-02 13:05:54 +08:00
parent deb70ee4e0
commit d67fd9d165
6 changed files with 16 additions and 94 deletions
-21
View File
@@ -310,27 +310,6 @@ class custom extends control
die(js::reload('parent'));
}
/**
* Ajax set homepage.
*
* @param string $module
* @param string $page
* @access public
* @return void
*/
public function ajaxSetHomepage($module, $page = '')
{
if(empty($page))
{
$this->view->title = $this->lang->homepage;
$this->view->module = $module;
die($this->display());
}
$account = $this->app->user->account;
$this->loadModel('setting')->setItem("$account.$module.homepage", $page);
}
/**
* Custom menu view
*