From 297fcb68a4f24f55f29961b0415e608340d866c7 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 27 Nov 2007 13:56:23 +0000 Subject: [PATCH] Use time() instead of mktime() preventing a 'PHP Strict Standards' notice --- ContributionScores_body.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContributionScores_body.php b/ContributionScores_body.php index f74c40a..5be8618 100644 --- a/ContributionScores_body.php +++ b/ContributionScores_body.php @@ -49,7 +49,7 @@ class ContributionScores extends SpecialPage "FROM $userTable userTable JOIN $revTable revTable ON (userTable.user_id=revTable.rev_user) "; if ( $days > 0 ) { - $date = mktime() - (60*60*24*$days); + $date = time() - (60*60*24*$days); $dateString = $dbr->timestamp($date); $sql .= "WHERE rev_timestamp > '$dateString' "; }