mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
git-svn-id: file:///svn/phpbb/trunk@7604 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
770dab2ca8
commit
88819d899f
1 changed files with 2 additions and 1 deletions
|
@ -979,6 +979,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
$file = str_replace('/', '.', $file);
|
$file = str_replace('/', '.', $file);
|
||||||
$filename = "{$cache_prefix}_$file.html.$phpEx";
|
$filename = "{$cache_prefix}_$file.html.$phpEx";
|
||||||
|
|
||||||
|
|
||||||
$template->assign_block_vars('file', array(
|
$template->assign_block_vars('file', array(
|
||||||
'U_VIEWSOURCE' => $this->u_action . "&action=cache&id=$template_id&source=$file",
|
'U_VIEWSOURCE' => $this->u_action . "&action=cache&id=$template_id&source=$file",
|
||||||
'UA_VIEWSOURCE' => str_replace('&', '&', $this->u_action) . "&action=cache&id=$template_id&source=$file",
|
'UA_VIEWSOURCE' => str_replace('&', '&', $this->u_action) . "&action=cache&id=$template_id&source=$file",
|
||||||
|
@ -986,7 +987,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
'CACHED' => $user->format_date(filemtime("{$phpbb_root_path}cache/$filename")),
|
'CACHED' => $user->format_date(filemtime("{$phpbb_root_path}cache/$filename")),
|
||||||
'FILENAME' => $file,
|
'FILENAME' => $file,
|
||||||
'FILESIZE' => sprintf('%.1f KB', filesize("{$phpbb_root_path}cache/$filename") / 1024),
|
'FILESIZE' => sprintf('%.1f KB', filesize("{$phpbb_root_path}cache/$filename") / 1024),
|
||||||
'MODIFIED' => $user->format_date((!$template_row['template_storedb']) ? filemtime("{$phpbb_root_path}styles/{$template_row['template_path']}/template/$file.html") : $filemtime[$file . '.html']))
|
'MODIFIED' => $user->format_date((!$template_row['template_storedb']) ? filemtime("{$phpbb_root_path}styles/{$template_row['template_path']}/template/" . str_replace('.', '/', $file) . '.html') : $filemtime[$file . '.html']))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
unset($filemtime);
|
unset($filemtime);
|
||||||
|
|
Loading…
Add table
Reference in a new issue