aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-05-16 11:57:56 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-05-16 11:57:56 +0000
commit88819d899f096aa590480568cbdb9b0b76074311 (patch)
tree8c0a04fb4f29c8fb44e58e7c5f95eafa457f7fff
parent770dab2ca86928de371d27401a9faf6c31554316 (diff)
downloadforums-88819d899f096aa590480568cbdb9b0b76074311.tar
forums-88819d899f096aa590480568cbdb9b0b76074311.tar.gz
forums-88819d899f096aa590480568cbdb9b0b76074311.tar.bz2
forums-88819d899f096aa590480568cbdb9b0b76074311.tar.xz
forums-88819d899f096aa590480568cbdb9b0b76074311.zip
#11024
git-svn-id: file:///svn/phpbb/trunk@7604 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/acp/acp_styles.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index 4e6dfa65d2..12327694cf 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -978,6 +978,7 @@ parse_css_file = {PARSE_CSS_FILE}
{
$file = str_replace('/', '.', $file);
$filename = "{$cache_prefix}_$file.html.$phpEx";
+
$template->assign_block_vars('file', array(
'U_VIEWSOURCE' => $this->u_action . "&amp;action=cache&amp;id=$template_id&amp;source=$file",
@@ -986,7 +987,7 @@ parse_css_file = {PARSE_CSS_FILE}
'CACHED' => $user->format_date(filemtime("{$phpbb_root_path}cache/$filename")),
'FILENAME' => $file,
'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);