dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use wfIsWindows() in CDB writers
[lhc/web/wiklou.git]
/
includes
/
utils
/
CdbPHP.php
diff --git
a/includes/utils/CdbPHP.php
b/includes/utils/CdbPHP.php
index
c6edaf5
..
f05f786
100644
(file)
--- a/
includes/utils/CdbPHP.php
+++ b/
includes/utils/CdbPHP.php
@@
-334,7
+334,7
@@
class CdbWriterPHP extends CdbWriter {
if ( isset( $this->handle ) ) {
fclose( $this->handle );
}
if ( isset( $this->handle ) ) {
fclose( $this->handle );
}
- if (
wfI
sWindows() && file_exists( $this->realFileName ) ) {
+ if (
$this->i
sWindows() && file_exists( $this->realFileName ) ) {
unlink( $this->realFileName );
}
if ( !rename( $this->tmpFileName, $this->realFileName ) ) {
unlink( $this->realFileName );
}
if ( !rename( $this->tmpFileName, $this->realFileName ) ) {