comparison core/modules/locale/tests/src/Functional/LocaleUpdateBase.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children c2387f117808
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
136 'filemime' => 'text/x-gettext-translation', 136 'filemime' => 'text/x-gettext-translation',
137 'timestamp' => $timestamp, 137 'timestamp' => $timestamp,
138 'status' => FILE_STATUS_PERMANENT, 138 'status' => FILE_STATUS_PERMANENT,
139 ]); 139 ]);
140 file_put_contents($file->getFileUri(), $po_header . $text); 140 file_put_contents($file->getFileUri(), $po_header . $text);
141 touch(drupal_realpath($file->getFileUri()), $timestamp); 141 touch(\Drupal::service('file_system')->realpath($file->getFileUri()), $timestamp);
142 $file->save(); 142 $file->save();
143 } 143 }
144 144
145 /** 145 /**
146 * Setup the environment containing local and remote translation files. 146 * Setup the environment containing local and remote translation files.