dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7acb05
)
Use isDisabled() instead of isBlank() in getGrantName in User.php
author
Justin Du
<justin.d128@gmail.com>
Tue, 29 Nov 2016 22:36:21 +0000
(16:36 -0600)
committer
Justin Du
<justin.d128@gmail.com>
Tue, 29 Nov 2016 22:36:21 +0000
(16:36 -0600)
Bug: T151956
Change-Id: Ic23c75b784c725f8f73eb1cf98d2bdb3763ab09d
includes/user/User.php
patch
|
blob
|
history
diff --git
a/includes/user/User.php
b/includes/user/User.php
index
82d8806
..
4950e27
100644
(file)
--- a/
includes/user/User.php
+++ b/
includes/user/User.php
@@
-5066,13
+5066,14
@@
class User implements IDBAccessObject {
/**
* Get the description of a given right
*
+ * @since 1.29
* @param string $right Right to query
* @return string Localized description of the right
*/
public static function getRightDescription( $right ) {
$key = "right-$right";
$msg = wfMessage( $key );
- return $msg->is
Blank
() ? $right : $msg->text();
+ return $msg->is
Disabled
() ? $right : $msg->text();
}
/**