X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FLCStoreStaticArray.php;h=fff9bab2e9bbbbc137fa19a8184f49f7b596b2cc;hb=19122929fcc4dd4550e67c9a337c83a256a1fe48;hp=862ed67fa41cc22e72f14d890e959e1beba17a62;hpb=77f531c8812b4607be5b79ddd9695018b68dc16c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/LCStoreStaticArray.php b/includes/cache/LCStoreStaticArray.php index 862ed67fa4..fff9bab2e9 100644 --- a/includes/cache/LCStoreStaticArray.php +++ b/includes/cache/LCStoreStaticArray.php @@ -48,7 +48,7 @@ class LCStoreStaticArray implements LCStore { public function startWrite( $code ) { $this->currentLang = $code; - $this->fname = $this->directory. '/' . $code . '.l10n.php'; + $this->fname = $this->directory . '/' . $code . '.l10n.php'; $this->data[$code] = array(); if ( file_exists( $this->fname ) ) { $this->data[$code] = require $this->fname; @@ -79,7 +79,7 @@ class LCStoreStaticArray implements LCStore { // [A]rray return array( 'a', array_map( function ( $v ) { return LCStoreStaticArray::encode( $v ); - }, $data ) ); + }, $value ) ); } throw new RuntimeException( 'Cannot encode ' . var_export( $value, true ) ); @@ -125,7 +125,7 @@ class LCStoreStaticArray implements LCStore { public function get( $code, $key ) { if ( !array_key_exists( $code, $this->data ) ) { - $fname = $this->directory. '/' . $code . '.l10n.php'; + $fname = $this->directory . '/' . $code . '.l10n.php'; if ( !file_exists( $fname ) ) { return null; }