mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
이미지이름 최초 호출시 mtime이 추가되지 않는 버그 수정
This commit is contained in:
parent
480c07b2d7
commit
6580f9cbdf
1 changed files with 9 additions and 1 deletions
|
|
@ -21,8 +21,14 @@ function memberTransImageName($matches)
|
|||
$oMemberModel = getModel('member');
|
||||
$nick_name = $matches[5];
|
||||
|
||||
// Initialize global variable for cache
|
||||
if(!isset($GLOBALS['_transImageNameList'][$member_srl]))
|
||||
{
|
||||
$GLOBALS['_transImageNameList'][$member_srl] = new stdClass();
|
||||
}
|
||||
$_tmp = &$GLOBALS['_transImageNameList'][$member_srl];
|
||||
// If pre-defined data in the global variablesm return it
|
||||
|
||||
// If pre-defined data in the global variables, return it
|
||||
if(!$_tmp->cached)
|
||||
{
|
||||
$_tmp->cached = true;
|
||||
|
|
@ -32,6 +38,7 @@ function memberTransImageName($matches)
|
|||
if(file_exists(_XE_PATH_ . $image_name_file))
|
||||
{
|
||||
$_tmp->image_name_file = $image_name_file . '?' . date('YmdHis', filemtime(_XE_PATH_ . $image_name_file));
|
||||
$image_name_file = $_tmp->image_name_file;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -41,6 +48,7 @@ function memberTransImageName($matches)
|
|||
if(file_exists(_XE_PATH_ . $image_mark_file))
|
||||
{
|
||||
$_tmp->image_mark_file = $image_mark_file . '?' . date('YmdHis', filemtime(_XE_PATH_ . $image_mark_file));
|
||||
$image_mark_file = $_tmp->image_mark_file;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue