Merge branch 'master' of git.neuf.no:inside

This commit is contained in:
Magnus Søyland committed 2014-09-03 20:58:53 +02:00
commit ff962d3a13
1 file changed
+8 -14
+8 -14
View File
@@ -1583,21 +1583,15 @@ function getNextMembershipExpiryDate()
}
/*
* Returns the next expiry date for a given time.
* Returns the expiry date for a given time.
*/
function getExpiryDate($time = null)
{
if($time == null) $time = time();
$time = is_numeric($time)?$time:strtotime($time);
if (date("m-d", $time) > "08-01" )
{
return date("Y", strtotime("+1 year", $time)) . '-08-01';
}
else
{
return date("Y", $time) . '-08-01';
}
function getExpiryDate($time = null) {
if($time == null) {
$time = time();
}
$time = is_numeric($time) ? $time : strtotime($time);
return date("Y-m-d", strtotime("+1 year", $time));
}
// Migration (nikolark)