summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2020-06-04 11:31:09 +0200
committerThomas Citharel <tcit@tcit.fr>2020-06-04 11:34:33 +0200
commitb210ed6990e85b586dc4b0fec373eb6802d8c394 (patch)
treec19b4f5f0e10d3820c5892db0f7b14e235f24ce1 /apps/settings/lib
parent6c2cde3d0c6f11e201d8bc1b95763b1c9998421d (diff)
downloadnextcloud-server-b210ed6990e85b586dc4b0fec373eb6802d8c394.tar.gz
nextcloud-server-b210ed6990e85b586dc4b0fec373eb6802d8c394.zip
Use \OC::$CLI instead of PHP_SAPI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/Hooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Hooks.php b/apps/settings/lib/Hooks.php
index aea24b81df6..ba5b572c41a 100644
--- a/apps/settings/lib/Hooks.php
+++ b/apps/settings/lib/Hooks.php
@@ -125,7 +125,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);