mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
issue 222 after recreate cache, don't make admin menu cache.
make admin menu cache method move to ModuleHandler this bug is fixed. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9438 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a10fbe62db
commit
bea62b05e4
3 changed files with 16 additions and 14 deletions
|
|
@ -206,6 +206,21 @@
|
||||||
if(!$kind && $this->module == 'admin') $kind = 'admin';
|
if(!$kind && $this->module == 'admin') $kind = 'admin';
|
||||||
if($this->module_info->use_mobile != "Y") Mobile::setMobile(false);
|
if($this->module_info->use_mobile != "Y") Mobile::setMobile(false);
|
||||||
|
|
||||||
|
// admin menu check
|
||||||
|
$oMenuAdminModel = &getAdminModel('menu');
|
||||||
|
$output = $oMenuAdminModel->getMenuByTitle('__XE_ADMIN__');
|
||||||
|
|
||||||
|
if(!$output->menu_srl)
|
||||||
|
{
|
||||||
|
$oAdminClass = &getClass('admin');
|
||||||
|
$oAdminClass->createXeAdminMenu();
|
||||||
|
}
|
||||||
|
else if(!is_readable($output->php_file))
|
||||||
|
{
|
||||||
|
$oMenuAdminController = &getAdminController('menu');
|
||||||
|
$oMenuAdminController->makeXmlFile($output->menu_srl);
|
||||||
|
}
|
||||||
|
|
||||||
// Admin ip
|
// Admin ip
|
||||||
$logged_info = Context::get('logged_info');
|
$logged_info = Context::get('logged_info');
|
||||||
if($kind == 'admin' && $_SESSION['denied_admin'] == 'Y'){
|
if($kind == 'admin' && $_SESSION['denied_admin'] == 'Y'){
|
||||||
|
|
|
||||||
|
|
@ -16,20 +16,7 @@
|
||||||
* @return none
|
* @return none
|
||||||
**/
|
**/
|
||||||
function init() {
|
function init() {
|
||||||
// admin menu check
|
|
||||||
$this->xeMenuTitle = '__XE_ADMIN__';
|
$this->xeMenuTitle = '__XE_ADMIN__';
|
||||||
$oMenuAdminModel = &getAdminModel('menu');
|
|
||||||
$output = $oMenuAdminModel->getMenuByTitle($this->xeMenuTitle);
|
|
||||||
|
|
||||||
if(!$output->menu_srl)
|
|
||||||
{
|
|
||||||
parent::_createXeAdminMenu();
|
|
||||||
}
|
|
||||||
else if(!is_readable($output->php_file))
|
|
||||||
{
|
|
||||||
$oMenuAdminController = &getAdminController('menu');
|
|
||||||
$oMenuAdminController->makeXmlFile($output->menu_srl);
|
|
||||||
}
|
|
||||||
|
|
||||||
// forbit access if the user is not an administrator
|
// forbit access if the user is not an administrator
|
||||||
$oMemberModel = &getModel('member');
|
$oMemberModel = &getModel('member');
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
* @brief regenerate xe admin default menu
|
* @brief regenerate xe admin default menu
|
||||||
* @return none
|
* @return none
|
||||||
**/
|
**/
|
||||||
function _createXeAdminMenu()
|
function createXeAdminMenu()
|
||||||
{
|
{
|
||||||
//insert menu
|
//insert menu
|
||||||
$args->title = $this->xeMenuTitle;
|
$args->title = $this->xeMenuTitle;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue