Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simple check to don't running posix_ function on Windows

  • Loading branch information...
commit 27ff159f5b2af575c76272ce436e02d8df4f8266 1 parent 87cdde3
@Axinet Axinet authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/less/sfLESS.class.php
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.