diff options
author | Thomas Citharel <tcit@tcit.fr> | 2020-06-04 11:31:09 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2020-06-04 11:31:09 +0200 |
commit | d1b43d4fc2d07f5d64361c7478d160b5d0ea281b (patch) | |
tree | 2a36b11ce3ab466570620b763b2599ff81d363f6 | |
parent | 59c1ff690a88482ecba170b6f9b7624fc8a18a76 (diff) | |
download | nextcloud-server-d1b43d4fc2d07f5d64361c7478d160b5d0ea281b.tar.gz nextcloud-server-d1b43d4fc2d07f5d64361c7478d160b5d0ea281b.zip |
Use \OC::$CLI instead of PHP_SAPI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r-- | apps/settings/lib/Hooks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Hooks.php b/apps/settings/lib/Hooks.php index 24dc40f2494..ed72194488d 100644 --- a/apps/settings/lib/Hooks.php +++ b/apps/settings/lib/Hooks.php @@ -126,7 +126,7 @@ class Hooks { ->setSubject(Provider::PASSWORD_CHANGED_SELF); } } else { - if (PHP_SAPI === 'cli') { + if (\OC::$CLI) { // Admin used occ to reset the password $text = $this->l->t('Your password on %s was reset by an administrator.', [$instanceUrl]); $event->setSubject(Provider::PASSWORD_RESET); |