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:
679e133
)
Add a getExpiry method to Block (rather than direct member variable access. Yuck)
author
Sam Reed
<reedy@users.mediawiki.org>
Tue, 6 Dec 2011 15:23:21 +0000
(15:23 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Tue, 6 Dec 2011 15:23:21 +0000
(15:23 +0000)
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
7aa1bc1
..
c153335
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-1139,6
+1139,15
@@
class Block {
return $this->target;
}
+ /**
+ * @since 1.19
+ *
+ * @return Mixed|string
+ */
+ public function getExpiry() {
+ return $this->mExpiry;
+ }
+
/**
* Set the target for this block, and update $this->type accordingly
* @param $target Mixed