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;
// [A]rray
return array( 'a', array_map( function ( $v ) {
return LCStoreStaticArray::encode( $v );
- }, $data ) );
+ }, $value ) );
}
throw new RuntimeException( 'Cannot encode ' . var_export( $value, true ) );
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;
}