Don't use wfIsWindows() in CDB writers
[lhc/web/wiklou.git] / includes / utils / CdbPHP.php
index c6edaf5..f05f786 100644 (file)
@@ -334,7 +334,7 @@ class CdbWriterPHP extends CdbWriter {
                if ( isset( $this->handle ) ) {
                        fclose( $this->handle );
                }
-               if ( wfIsWindows() && file_exists( $this->realFileName ) ) {
+               if ( $this->isWindows() && file_exists( $this->realFileName ) ) {
                        unlink( $this->realFileName );
                }
                if ( !rename( $this->tmpFileName, $this->realFileName ) ) {