Pivot the interpretation of expiry time at 10 years (1980) instead of 1 month.
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 21 May 2010 05:20:36 +0000 (05:20 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 21 May 2010 05:20:36 +0000 (05:20 +0000)
includes/BagOStuff.php

index 8cd5d54..563127d 100644 (file)
@@ -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;