mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
fixed not delete menu cache file when delete menu
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9070 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f9ab723f57
commit
e4d9b43320
1 changed files with 9 additions and 9 deletions
|
|
@ -74,7 +74,7 @@
|
||||||
$cache_list = FileHandler::readDir("./files/cache/menu","",false,true);
|
$cache_list = FileHandler::readDir("./files/cache/menu","",false,true);
|
||||||
if(count($cache_list)) {
|
if(count($cache_list)) {
|
||||||
foreach($cache_list as $cache_file) {
|
foreach($cache_list as $cache_file) {
|
||||||
$pos = strpos($cache_file, $menu_srl.'_');
|
$pos = strpos($cache_file, $menu_srl.'.');
|
||||||
if($pos>0)FileHandler::removeFile($cache_file);
|
if($pos>0)FileHandler::removeFile($cache_file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -522,7 +522,7 @@
|
||||||
$xml_file = $this->makeXmlFile($args->menu_srl);
|
$xml_file = $this->makeXmlFile($args->menu_srl);
|
||||||
|
|
||||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAdminMenuSetup');
|
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAdminSetup');
|
||||||
$this->setRedirectUrl($returnUrl);
|
$this->setRedirectUrl($returnUrl);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue