コード例 #1
0
ファイル: compiler.php プロジェクト: knigherrant/decopatio
 public function findImport($name)
 {
     // Adds support for absolute paths
     if (substr($name, 0, 7) == "file://") {
         $full = substr($name, 7);
         // TODO: Restrict importing of less files within the allowed directories.
         if ($this->fileExists($file = $full . '.less') || $this->fileExists($file = $full)) {
             return $file;
         }
     }
     return parent::findImport($name);
 }