Add variable to force the reload of CSS and javascript when version changes
This commit is contained in:
parent
5bac73f2af
commit
eb69cc39e6
2 changed files with 4 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ function js_include($p_string)
|
|||
|
||||
if ( ! file_exists('js/'.$p_string))
|
||||
alert("Erreur js/$p_string n existe pas");
|
||||
$script='<script type="text/javascript" charset="utf-8" language="javascript" src="js/'.$p_string.'"></script>';
|
||||
$script='<script type="text/javascript" charset="utf-8" language="javascript" src="js/'.$p_string.'?version='.SVNINFO.'"></script>';
|
||||
// debug
|
||||
|
||||
return $script;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue