X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Asset.php;h=eb5c0538de30ffc395121bf6ff6c9b9fe56b6250;hp=bc1edc3928bc3868172d4f8f2f348a2161455353;hb=HEAD;hpb=edf4ff56edc0235d2242110e6520529ea12c6dca diff --git a/Asset.php b/Asset.php index bc1edc39..3e49f8eb 100644 --- a/Asset.php +++ b/Asset.php @@ -46,7 +46,7 @@ class Pman_Core_Asset extends Pman { } $ext = $bits[0]; - if (preg_match('/\.map$/',$_REQUEST_URI)) { + if (preg_match('/\.map$/',$_SERVER['REQUEST_URI'])) { $ext = 'map'; } @@ -112,7 +112,7 @@ class Pman_Core_Asset extends Pman { $fh = fopen($fn,'r'); fpassthru($fh); fclose($fh); - $content = $data; + } @@ -158,6 +158,7 @@ class Pman_Core_Asset extends Pman { return false; } + if (file_exists($compile_dir)) { return $compile_dir; }