force css reload on change

This commit is contained in:
following
2013-02-27 03:46:30 +01:00
parent f9e2dfa9fd
commit 2f54c60359
4 changed files with 11 additions and 5 deletions
+4 -1
View File
@@ -432,7 +432,7 @@ function __autoload($class_name)
function tpl_BuildTemplate($dbdisconnect=true)
{
//template handling vars
global $stylepath, $tplname, $vars, $langpath, $locale, $opt, $oc_nodeid;
global $style, $stylepath, $tplname, $vars, $langpath, $locale, $opt, $oc_nodeid;
//language specific expression
global $error_pagenotexist;
//only for debbuging
@@ -440,6 +440,9 @@ function __autoload($class_name)
// country dropdown
global $tpl_usercountries;
tpl_set_var('screen_css_time',filemtime($opt['rootpath'] . "resource2/" . $style . "/css/style_screen.css"));
tpl_set_var('print_css_time',filemtime($opt['rootpath'] . "resource2/" . $style . "/css/style_print.css"));
if (isset($bScriptExecution))
{
$bScriptExecution->Stop();