Page MenuHomePhorge

D25298.1732062988.diff
No OneTemporary

D25298.1732062988.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
Wed, Nov 20, 00:36 (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
979564
Default Alt Text
D25298.1732062988.diff (1 KB)

Event Timeline