fix #8131 - chinese translations
[Pman.Core] / Asset.php
index bc1edc3..3e49f8e 100644 (file)
--- 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;
         }