Index: trunk/extensions/Drafts/Drafts.classes.php |
— | — | @@ -12,6 +12,10 @@ |
13 | 13 | |
14 | 14 | private static function getDraftAgeCutoff() { |
15 | 15 | global $egDraftsLifeSpan; |
| 16 | + if ( !$egDraftsLifeSpan ) { |
| 17 | + // Drafts stay forever |
| 18 | + return 0; |
| 19 | + } |
16 | 20 | return wfTimestamp( TS_UNIX ) - ( $egDraftsLifeSpan * 60 * 60 * 24 ); |
17 | 21 | } |
18 | 22 | |
Index: trunk/extensions/Drafts/Drafts.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | // Use the value 0 to disable autosave |
50 | 50 | $egDraftsAutoSaveTimeout = 10; |
51 | 51 | |
52 | | -// Days to keep drafts around before automatic deletion |
| 52 | +// Days to keep drafts around before automatic deletion. Set to 0 to keep forever. |
53 | 53 | $egDraftsLifeSpan = 30; |
54 | 54 | |
55 | 55 | // Ratio of times which a list of drafts requested and the list should be pruned |