projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
944a014
)
Silence chmod() warnings (operation not permitted) when using CIFS mounts and possibl...
author
martinml
<github@martinml.com>
Fri, 20 Apr 2012 18:01:06 +0000 (21:01 +0300)
committer
martinml
<github@martinml.com>
Fri, 20 Apr 2012 18:01:06 +0000 (21:01 +0300)
lib/Twig/Environment.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Environment.php
b/lib/Twig/Environment.php
index
6c47326
..
88eaf90
100644
(file)
--- a/
lib/Twig/Environment.php
+++ b/
lib/Twig/Environment.php
@@
-1069,7
+1069,7
@@
class Twig_Environment
if (false !== @file_put_contents($tmpFile, $content)) {
// rename does not work on Win32 before 5.2.6
if (@rename($tmpFile, $file) || (@copy($tmpFile, $file) && unlink($tmpFile))) {
- chmod($file, 0644);
+ @chmod($file, 0644);
return;
}