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:
77486d4
)
Fixed 'permission denied' cdb fatals (on windows at least)
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 13 Aug 2009 20:55:26 +0000
(20:55 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 13 Aug 2009 20:55:26 +0000
(20:55 +0000)
includes/LocalisationCache.php
patch
|
blob
|
history
diff --git
a/includes/LocalisationCache.php
b/includes/LocalisationCache.php
index
77fa7cb
..
fe22079
100644
(file)
--- a/
includes/LocalisationCache.php
+++ b/
includes/LocalisationCache.php
@@
-827,6
+827,10
@@
class LCStore_CDB implements LCStore {
"directory \"{$this->directory}\"" );
}
}
+ // Close reader to stop permission errors on write
+ if( !empty($this->readers[$code]) ) {
+ $this->readers[$code]->close();
+ }
$this->writer = CdbWriter::open( $this->getFileName( $code ) );
$this->currentLang = $code;
}
@@
-836,7
+840,7
@@
class LCStore_CDB implements LCStore {
$this->writer->close();
$this->writer = null;
- //
Reopen
the reader
+ //
Close and remove
the reader
if ( !empty( $this->readers[$this->currentLang] ) ) {
$this->readers[$this->currentLang]->close();
}