X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fcache%2Flocalisation%2FLCStoreCDB.php;h=8814cff6910f0af1233886db5213ea06aef0aa70;hb=a41aa2190a1b8133042afd1d99aa7569724c3404;hp=246a3dda275910b70d732adda0e905e796187e26;hpb=fbc9e214e7c6f687e7dc3a3178e60f4164ed9ad6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/localisation/LCStoreCDB.php b/includes/cache/localisation/LCStoreCDB.php index 246a3dda27..8814cff691 100644 --- a/includes/cache/localisation/LCStoreCDB.php +++ b/includes/cache/localisation/LCStoreCDB.php @@ -86,11 +86,9 @@ class LCStoreCDB implements LCStore { } public function startWrite( $code ) { - if ( !file_exists( $this->directory ) ) { - if ( !wfMkdirParents( $this->directory, null, __METHOD__ ) ) { - throw new MWException( "Unable to create the localisation store " . - "directory \"{$this->directory}\"" ); - } + if ( !file_exists( $this->directory ) && !wfMkdirParents( $this->directory, null, __METHOD__ ) ) { + throw new MWException( "Unable to create the localisation store " . + "directory \"{$this->directory}\"" ); } // Close reader to stop permission errors on write