Skip to content
Merged
Changes from all commits
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
Use \OC::$CLI instead of PHP_SAPI
Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld authored and backportbot[bot] committed Jun 4, 2020
commit 26f72d1aecc3258cbb4a29101de7a34a37ba34e8
2 changes: 1 addition & 1 deletion apps/settings/lib/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,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