mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Clean up other types of cache file path handling
This commit is contained in:
parent
930ebc97b7
commit
0c337f48cd
5 changed files with 20 additions and 24 deletions
|
|
@ -83,8 +83,8 @@ class menuAdminModel extends menu
|
|||
if(!$output->data) return;
|
||||
|
||||
$menu_info = $output->data;
|
||||
$menu_info->xml_file = sprintf('./files/cache/menu/%s.xml.php',$menu_srl);
|
||||
$menu_info->php_file = sprintf('./files/cache/menu/%s.php',$menu_srl);
|
||||
$menu_info->xml_file = sprintf('./files/cache/menu/%d.xml.php',$menu_srl);
|
||||
$menu_info->php_file = sprintf('./files/cache/menu/%d.php',$menu_srl);
|
||||
return $menu_info;
|
||||
}
|
||||
|
||||
|
|
@ -112,8 +112,8 @@ class menuAdminModel extends menu
|
|||
|
||||
if($menu_info->menu_srl)
|
||||
{
|
||||
$menu_info->xml_file = sprintf('./files/cache/menu/%s.xml.php',$menu_info->menu_srl);
|
||||
$menu_info->php_file = sprintf('./files/cache/menu/%s.php',$menu_info->menu_srl);
|
||||
$menu_info->xml_file = sprintf('./files/cache/menu/%d.xml.php',$menu_info->menu_srl);
|
||||
$menu_info->php_file = sprintf('./files/cache/menu/%d.php',$menu_info->menu_srl);
|
||||
}
|
||||
return $menu_info;
|
||||
}
|
||||
|
|
@ -502,7 +502,7 @@ class menuAdminModel extends menu
|
|||
{
|
||||
$isMenuFixed = false;
|
||||
$output = $this->getMenu($menuSrl);
|
||||
$php_file = sprintf(_XE_PATH_ . 'files/cache/menu/%s.php',$output->menu_srl);
|
||||
$php_file = sprintf(_XE_PATH_ . 'files/cache/menu/%d.php',$output->menu_srl);
|
||||
if(file_exists($php_file))
|
||||
{
|
||||
include($php_file);
|
||||
|
|
@ -554,7 +554,7 @@ class menuAdminModel extends menu
|
|||
{
|
||||
unset($menu);
|
||||
unset($menuItems);
|
||||
$value->php_file = sprintf(_XE_PATH_ . 'files/cache/menu/%s.php',$value->menu_srl);
|
||||
$value->php_file = sprintf(_XE_PATH_ . 'files/cache/menu/%d.php',$value->menu_srl);
|
||||
if(!file_exists($value->php_file))
|
||||
{
|
||||
$oMenuAdminController->makeXmlFile($value->menu_srl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue