Merge pull request #21242 from nextcloud/backport/21232/stable19
[stable19] Use \OC::$CLI instead of PHP_SAPI
This commit is contained in:
commit
70c174566b
|
@ -126,7 +126,7 @@ class Hooks {
|
||||||
->setSubject(Provider::PASSWORD_CHANGED_SELF);
|
->setSubject(Provider::PASSWORD_CHANGED_SELF);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (PHP_SAPI === 'cli') {
|
if (\OC::$CLI) {
|
||||||
// Admin used occ to reset the password
|
// Admin used occ to reset the password
|
||||||
$text = $this->l->t('Your password on %s was reset by an administrator.', [$instanceUrl]);
|
$text = $this->l->t('Your password on %s was reset by an administrator.', [$instanceUrl]);
|
||||||
$event->setSubject(Provider::PASSWORD_RESET);
|
$event->setSubject(Provider::PASSWORD_RESET);
|
||||||
|
|
Loading…
Reference in New Issue