Skip to content
Snippets Groups Projects
Commit 19c66695 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Drupal 8 version of the remote library: cleanup

parent 2cad2af0
No related branches found
Tags 11.2.8
No related merge requests found
No preview for this file type
......@@ -43,7 +43,7 @@ class DrdActionBlocks extends DrdActionBase {
* @inheritDoc
*/
public function execute() {
if(!\Drupal::moduleHandler()->moduleExists('block')) {
if (!\Drupal::moduleHandler()->moduleExists('block')) {
return array();
}
$args = $this->getArguments();
......
......@@ -30,7 +30,7 @@ class DrdActionUserCredentials extends DrdActionBase {
$account->save();
}
catch (\Exception $ex) {
drupal_set_message(t('Changing user credentials failed.'), 'error');
drupal_set_message('Changing user credentials failed.', 'error');
}
}
return array();
......@@ -51,7 +51,7 @@ class DrdActionUserCredentials extends DrdActionBase {
}
$user = user_load_by_name($args['username']);
if (!empty($user) && $user->uid !== $args['uid']) {
drupal_set_message(t('Username already taken.'), 'error');
drupal_set_message('Username already taken.', 'error');
return;
}
$account->setUsername($args['username']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment