시나리오 8번 버그 수정, printJS, printCSS 버그 수정
This commit is contained in:
1 parent
1764504ea3
commit
3fb5b99af3
2 files changed
+6
-6
No files matched your search
@@ -89,10 +89,10 @@ class WebUtil
|
||||
return $decoded;
|
||||
}
|
||||
|
||||
public function printJS(string $path){
|
||||
public static function printJS(string $path){
|
||||
//async, defer 옵션 고려
|
||||
$upath = \phpUri::parse($path);
|
||||
$path = $upath->join();
|
||||
$path = $upath->join('');
|
||||
if(!$upath->scheme && file_exists($upath->path)){
|
||||
$mtime = filemtime($upath->path);
|
||||
if($upath->query){
|
||||
@@ -108,9 +108,9 @@ class WebUtil
|
||||
return "<script src='{$path}{$tail}'></script>\n";
|
||||
}
|
||||
|
||||
public function printCSS(string $path){
|
||||
public static function printCSS(string $path){
|
||||
$upath = \phpUri::parse($path);
|
||||
$path = $upath->join();
|
||||
$path = $upath->join('');
|
||||
if(!$upath->scheme && file_exists($upath->path)){
|
||||
$mtime = filemtime($upath->path);
|
||||
if($upath->query){
|
||||
|
||||
Reference in new issue
Block a user