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:
5148fe8
)
Pivot the interpretation of expiry time at 10 years (1980) instead of 1 month.
author
Tim Starling
<tstarling@users.mediawiki.org>
Fri, 21 May 2010 05:20:36 +0000
(
05:20
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Fri, 21 May 2010 05:20:36 +0000
(
05:20
+0000)
includes/BagOStuff.php
patch
|
blob
|
history
diff --git
a/includes/BagOStuff.php
b/includes/BagOStuff.php
index
8cd5d54
..
563127d
100644
(file)
--- a/
includes/BagOStuff.php
+++ b/
includes/BagOStuff.php
@@
-154,7
+154,7
@@
abstract class BagOStuff {
* Convert an optionally relative time to an absolute time
*/
protected function convertExpiry( $exptime ) {
- if ( ( $exptime != 0 ) && ( $exptime <
3600 * 24 * 30
) ) {
+ if ( ( $exptime != 0 ) && ( $exptime <
86400 * 3650 /* 10 years */
) ) {
return time() + $exptime;
} else {
return $exptime;