diff --git a/web/src/base.php b/web/src/base.php index b20bc1b..ebc5398 100644 --- a/web/src/base.php +++ b/web/src/base.php @@ -17,13 +17,13 @@ function tpl($ns, $args=[]) { function tpl_script($script) { $suffix = ''; + $script = str_replace('.', '/', $script); if (getenv('env') === DEV) $suffix = '?_='.microtime(); echo APP_DIR.'/js/'.$script.'.js'.$suffix; } function tpl_scripts($scripts) { foreach ($scripts as $script) { - $script = str_replace('.', '/', $script); ?>