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:
13efc30
)
(bug 17352) Improve review UI with regards to blocks
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 4 Feb 2009 18:23:26 +0000
(18:23 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 4 Feb 2009 18:23:26 +0000
(18:23 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
e0289f8
..
c067d2b
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-1319,6
+1319,15
@@
class User {
return $this->mBlockreason;
}
+ /**
+ * If user is blocked, return the ID for the block
+ * @return \int Block ID
+ */
+ function getBlockId() {
+ $this->getBlockedStatus();
+ return ($this->mBlock ? $this->mBlock->mId : false);
+ }
+
/**
* Check if user is blocked on all wikis.
* Do not use for actual edit permission checks!