Page MenuHomePhorge

D25298.1734687928.diff
No OneTemporary

D25298.1734687928.diff

diff --git a/src/applications/people/xaction/PhabricatorUserEmpowerTransaction.php b/src/applications/people/xaction/PhabricatorUserEmpowerTransaction.php
--- a/src/applications/people/xaction/PhabricatorUserEmpowerTransaction.php
+++ b/src/applications/people/xaction/PhabricatorUserEmpowerTransaction.php
@@ -56,9 +56,15 @@
'%s empowered this user as an administrator.',
$this->renderAuthor());
} else {
- return pht(
- '%s defrocked this user.',
- $this->renderAuthor());
+ if (PhabricatorEnv::getEnvConfig('phabricator.serious-business')) {
+ return pht(
+ '%s removed the administrator role from this user.',
+ $this->renderAuthor());
+ } else {
+ return pht(
+ '%s defrocked this user.',
+ $this->renderAuthor());
+ }
}
}
@@ -70,10 +76,17 @@
$this->renderAuthor(),
$this->renderObject());
} else {
- return pht(
- '%s defrocked %s.',
- $this->renderAuthor(),
- $this->renderObject());
+ if (PhabricatorEnv::getEnvConfig('phabricator.serious-business')) {
+ return pht(
+ '%s removed the administrator role from %s.',
+ $this->renderAuthor(),
+ $this->renderObject());
+ } else {
+ return pht(
+ '%s defrocked %s.',
+ $this->renderAuthor(),
+ $this->renderObject());
+ }
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 09:45 (18 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1017234
Default Alt Text
D25298.1734687928.diff (1 KB)

Event Timeline