diff options
author | Callum Macrae <callum@lynxphp.com> | 2012-04-11 14:28:12 +0100 |
---|---|---|
committer | Callum Macrae <callum@lynxphp.com> | 2012-04-11 14:30:11 +0100 |
commit | 5665e82616fd12fbec36e7a1d42713a75ed85e22 (patch) | |
tree | c5da3b203046a28e34bfec11075bbe2f4e958477 /phpBB/includes/functions.php | |
parent | 26e7dd98b71655c7e09be02ebd3ef84765ce27b8 (diff) | |
download | forums-5665e82616fd12fbec36e7a1d42713a75ed85e22.tar forums-5665e82616fd12fbec36e7a1d42713a75ed85e22.tar.gz forums-5665e82616fd12fbec36e7a1d42713a75ed85e22.tar.bz2 forums-5665e82616fd12fbec36e7a1d42713a75ed85e22.tar.xz forums-5665e82616fd12fbec36e7a1d42713a75ed85e22.zip |
[ticket/10783] Added ?assets_version to assets.
PHPBB3-10783
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 9a6af29d69..a13605f688 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4767,6 +4767,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0 'S_SEARCH_HIDDEN_FIELDS' => build_hidden_fields($s_search_hidden_fields), + 'T_ASSETS_VERSION' => $config['assets_version'], 'T_ASSETS_PATH' => "{$web_path}assets", 'T_THEME_PATH' => "{$web_path}styles/" . rawurlencode($user->theme['style_path']) . '/theme', 'T_TEMPLATE_PATH' => "{$web_path}styles/" . rawurlencode($user->theme['style_path']) . '/template', @@ -4778,10 +4779,10 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0 'T_ICONS_PATH' => "{$web_path}{$config['icons_path']}/", 'T_RANKS_PATH' => "{$web_path}{$config['ranks_path']}/", 'T_UPLOAD_PATH' => "{$web_path}{$config['upload_path']}/", - 'T_STYLESHEET_LINK' => "{$web_path}styles/" . rawurlencode($user->theme['style_path']) . '/theme/stylesheet.css', - 'T_STYLESHEET_LANG_LINK' => "{$web_path}styles/" . rawurlencode($user->theme['style_path']) . '/theme/' . $user->lang_name . '/stylesheet.css', + 'T_STYLESHEET_LINK' => "{$web_path}styles/" . rawurlencode($user->theme['style_path']) . '/theme/stylesheet.css?assets_version=' . $config['assets_version'], + 'T_STYLESHEET_LANG_LINK' => "{$web_path}styles/" . rawurlencode($user->theme['style_path']) . '/theme/' . $user->lang_name . '/stylesheet.css?assets_version=' . $config['assets_version'], 'T_STYLESHEET_NAME' => $user->theme['style_name'], - 'T_JQUERY_LINK' => ($config['load_jquery_cdn'] && !empty($config['load_jquery_url'])) ? $config['load_jquery_url'] : "{$web_path}assets/javascript/jquery.js", + 'T_JQUERY_LINK' => ($config['load_jquery_cdn'] && !empty($config['load_jquery_url'])) ? $config['load_jquery_url'] : "{$web_path}assets/javascript/jquery.js?assets_version=" . $config['assets_version'], 'S_JQUERY_FALLBACK' => ($config['load_jquery_cdn']) ? true : false, 'T_THEME_NAME' => rawurlencode($user->theme['style_path']), |