Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use \OC::$CLI instead of PHP_SAPI
Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld committed Jun 4, 2020
commit bdb6589482beac25423ff2604818ff3cad06d9a9
2 changes: 1 addition & 1 deletion settings/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function onChangePassword($uid) {
->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);
Expand Down