Use \OC::$CLI instead of PHP_SAPI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
59c1ff690a
commit
d1b43d4fc2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue