X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;ds=sidebyside;f=Asset.php;h=eb5c0538de30ffc395121bf6ff6c9b9fe56b6250;hb=HEAD;hp=5fc3e6a74e4eb1826617ab18810286651bc48268;hpb=7123424487802e2aea4b6a50be803f5b6e06729d;p=Pman.Core diff --git a/Asset.php b/Asset.php index 5fc3e6a7..5fca1b61 100644 --- a/Asset.php +++ b/Asset.php @@ -42,7 +42,7 @@ class Pman_Core_Asset extends Pman { $bits = explode('/', $s); if (empty($bits[0]) || empty($bits[1]) || !isset($this->types[$bits[0]])) { - $this->jerr("invalid url"); + $this->jnotice("invalid url"); } $ext = $bits[0]; @@ -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; }