dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18b5fb3
)
Avoid some silly unlink notices
author
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 24 Jul 2009 09:22:51 +0000
(09:22 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 24 Jul 2009 09:22:51 +0000
(09:22 +0000)
includes/Cdb_PHP.php
patch
|
blob
|
history
diff --git
a/includes/Cdb_PHP.php
b/includes/Cdb_PHP.php
index
f2a044c
..
b222909
100644
(file)
--- a/
includes/Cdb_PHP.php
+++ b/
includes/Cdb_PHP.php
@@
-251,7
+251,7
@@
class CdbWriter_PHP extends CdbWriter {
public function close() {
$this->finish();
fclose( $this->handle );
- if ( wfIsWindows() ) {
+ if ( wfIsWindows()
&& file_exists($this->realFileName)
) {
unlink( $this->realFileName );
}
if ( !rename( $this->tmpFileName, $this->realFileName ) ) {