Commit 01ec069e authored by Project Update Bot's avatar Project Update Bot Committed by Ivan Trokhanenko
Browse files

Issue #3297468 by Project Update Bot, atul ghate: Automated Drupal 10 compatibility fixes

parent 2d970986
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ function jstimer_build_js_cache() {
  $path = 'public://jstimer';
  \Drupal::service('file_system')->prepareDirectory($path, FileSystemInterface::CREATE_DIRECTORY);
  $data = jstimer_get_javascript(TRUE);
  file_save_data($data, $path .'/timer.js', FileSystemInterface::EXISTS_REPLACE);
  \Drupal::service('file.repository')->writeData($data, $path .'/timer.js', FileSystemInterface::EXISTS_REPLACE);
  \Drupal::messenger()->addStatus(t('Javascript timer javascript file saved to: ') . $path .'/timer.js');

  if (!file_exists($path .'/timer.js')) {
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ use Drupal\Core\Form\FormStateInterface;
 */
function jst_clock_jstwidget() {

$mod_path = drupal_get_path('module', 'jst_clock');
$mod_path = \Drupal::service('extension.list.module')->getPath('jst_clock');
$config = \Drupal::config('jstimer.settings');
$svg_file = $config->get('jst_clock_sva_file');