Permalink
Browse files

Simple check to don't running posix_ function on Windows

  • Loading branch information...
1 parent 87cdde3 commit 27ff159f5b2af575c76272ce436e02d8df4f8266 @Axinet Axinet committed with Jan 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/less/sfLESS.class.php
@@ -214,7 +214,7 @@ public function writeCssFile($cssFile, $buffer)
// Add compiler header to CSS & writes it to file
$status = file_put_contents($cssFile, sfLESSUtils::getCssHeader() . "\n\n" . $buffer);
- if ($status !== false && fileowner($cssFile) == posix_geteuid())
+ if ('\\' != DIRECTORY_SEPARATOR && $status !== false && fileowner($cssFile) == posix_geteuid())
{
// Only attempt to chmod files we own
chmod($cssFile, 0666);

0 comments on commit 27ff159

Please sign in to comment.