Commit 8d1f9b8d authored by catch's avatar catch

Issue #2078057 by m1r1k, joelpittet, areke: Remove references to global in...

Issue #2078057 by m1r1k, joelpittet, areke: Remove references to global  in Content Translation module.
parent 0146bc72
......@@ -713,7 +713,7 @@ function content_translation_entity_insert(EntityInterface $entity) {
$translation += array(
'source' => '',
'uid' => $GLOBALS['user']->id(),
'uid' => \Drupal::currentUser()->id(),
'outdated' => FALSE,
'status' => TRUE,
'created' => REQUEST_TIME,
......
......@@ -144,7 +144,7 @@ function testImageFieldSync() {
// identifier.
$field_values = array(
'uri' => $this->files[$index]->uri,
'uid' => $GLOBALS['user']->id(),
'uid' => \Drupal::currentUser()->id(),
'status' => FILE_STATUS_PERMANENT,
);
$file = entity_create('file', $field_values);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment